-
Notifications
You must be signed in to change notification settings - Fork 32
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
Issue 26 update to new context api #38
Issue 26 update to new context api #38
Conversation
…I. StoreProvider now requires a Provider to be input as a prop, and connect requires a context object to be input as a prop.
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.
Had some comments on the approach so far. Let's discuss this later today!
…rt, removed modification to props, made sure innerProps got passed in as props
…ssue-26-update-to-new-context-api Merge skeleton and origin
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.
Had some minor followup feedback for some nitpicky details, but the rest of this looks about right.
One snag that's going to bite us with the new context API is that implementing |
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
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.
Cleaned up the last little details here. I think it's acceptable to remove getStore and cut a semver-incompatible release (0.3.0) to reflect it.
This fix Closes #26
Issue: StoreProvider and Connect used the legacy context API, this change updates it to the new API
Fix: Added a file StoreContext.lua that returns a static Roact Context. StoreProvider now returns a Roact Provider that passes a Rodux Store as its "value". Connect now uses a Roact Consumer to read in the store via props.