Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add prefix parameter.#13

Open
NOX73 wants to merge 1 commit intoSTRML:masterSTRML/keyMirror:masterfrom
NOX73:masterNOX73/keyMirror:masterCopy head branch name to clipboard
Open

Add prefix parameter.#13
NOX73 wants to merge 1 commit intoSTRML:masterSTRML/keyMirror:masterfrom
NOX73:masterNOX73/keyMirror:masterCopy head branch name to clipboard

Conversation

@NOX73
Copy link

@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

+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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.