-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
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
Add react-meteor-state/use-meteor-state #333
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update dependencies. Will try to test this weekend to provide more feedback.
@CaptainN how can we help here? |
This just needs documentation and tests. (Or an executive decision to skip those) |
|
How would it be an example of the use of this? |
It's almost the same as using |
Have been using this in production for over two years now without a problem. Let's get this finished please! |
This adds the
react-meteor-state
package! This package contains theuseMeteorState
hook, which provides a state manager like React's build inuseState
built on Meteor'sReload
package. The result, state persists between page refreshes during development and hot-code-push!The only downside is that you have to name each use with a globally unique name - so this is not a direct replacement for
useState
.TODO: