Skip to content

Add prefix parameter.#13

Open
NOX73 wants to merge 1 commit intoSTRML:masterfrom
NOX73:master
Open

Add prefix parameter.#13
NOX73 wants to merge 1 commit intoSTRML:masterfrom
NOX73:master

Conversation

@NOX73
Copy link
Copy Markdown

@NOX73 NOX73 commented Dec 19, 2015

This lib very often uses for react flux-like libs for constants definition. Would be nice if I could specify the prefix for values.

@AaronHarris
Copy link
Copy Markdown

+1, was about to submit a PR for just this. It's really helpful when dealing with multiple constants across many action creators, so each action type doesn't have to be UserConstants.ADD_USER and instead could be User.ADD (with constants shimmed into the User class since they're unique).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants