We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have a Store which keeps a list of Subscriptions used by the user.
It turns out that subscriptions is a variable added by Reflux.createStore(). This is clashing with my 'subscriptions' array.
Can we keep internal variables protected some way e.g. '_subscriptions'?
The text was updated successfully, but these errors were encountered:
None of Reflux’s store prototype property starts with an underscore, so it should be safe for you to use.
Otherwise, you can hide your internal data completely inside a closure:
const MyStore = (() => { const subscriptions = [ ] return Reflux.createStore({ // ... }) })()
Sorry, something went wrong.
Moved over to reflux-core with reflux/reflux-core#24.
No branches or pull requests
I have a Store which keeps a list of Subscriptions used by the user.
It turns out that subscriptions is a variable added by Reflux.createStore(). This is clashing with my 'subscriptions' array.
Can we keep internal variables protected some way e.g. '_subscriptions'?
The text was updated successfully, but these errors were encountered: