Closed thinkloop closed 8 years ago
@thinkloop
updateLocations
was defined in the LocationActions
and it automatically gets you the action symbol UPDATE_LOCATIONS
. This is because behind the scenes flux uses these constants to dispatch events.
Thanks for the reply. So does it use the camel case to decide where to put the underscore? On Dec 15, 2015 3:20 PM, "Yujing Zheng" notifications@github.com wrote:
@thinkloop https://github.com/thinkloop updateLocations was defined in the LocationActions and it automatically gets you the action symbol http://alt.js.org/docs/actions/#actionconstant UPDATE_LOCATIONS. This is because behind the scenes flux uses these constants to dispatch events.
— Reply to this email directly or view it on GitHub https://github.com/goatslacker/alt/issues/568#issuecomment-164885404.
yeah that's the convention
Thank you. I am replying by email but will close the issue when I get back to my desk. Please feel free to close meanwhile.
Best, Baz On Dec 15, 2015 5:54 PM, "Yujing Zheng" notifications@github.com wrote:
yeah that's the convention
— Reply to this email directly or view it on GitHub https://github.com/goatslacker/alt/issues/568#issuecomment-164916466.
In the store docs: http://alt.js.org/guide/store/
There is
handleUpdateLocations: LocationActions.UPDATE_LOCATIONS
However in the previous actions sections: http://alt.js.org/guide/actions/
There is no mention of the constant UPDATE_LOCATIONS.