alt icon indicating copy to clipboard operation
alt copied to clipboard

Getting started tut: updateLocations vs. UPDATE_LOCATIONS - explain the automagic!

Open rulatir opened this issue 8 years ago • 2 comments

In the getting started tutorial there is the LocationActions class and a LocationStore class. The LocationActions class defines a method (an action?) named updateLocations. However when the LocationsStore binds a handler to this action, it refers to it as LocationActions.UPDATE_LOCATIONS.

Please add a thorough explanation of the automagic that is going on here.

rulatir avatar Feb 26 '16 14:02 rulatir

+1, still don't get it !

Colmea avatar Mar 18 '16 09:03 Colmea

This is a constant that is dynamically generated that is used as a reference to the action.

In the docs or on the site

jdlehman avatar Mar 18 '16 18:03 jdlehman