goatslacker / goatslacker/alt

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

Open
#626 2 comments 0 reactions 0 assignees View on GitHub
docs
Dominant language
JavaScript
Stars
3.4k
Forks
312
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

Research direction

Start with the getting started tutorial and read the LocationActions and LocationsStore examples together, focusing on how updateLocations is exposed as LocationActions.UPDATE_LOCATIONS. Done means the tutorial thoroughly explains this automatic naming and binding behavior so a newcomer can understand why the two forms differ.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.