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
Use React Hooks for connect
#1065
Closed
Closed
Commits on Aug 14, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 4e654e2 - Browse repository at this point
Copy the full SHA 4e654e2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 31fc951 - Browse repository at this point
Copy the full SHA 31fc951View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0374936 - Browse repository at this point
Copy the full SHA 0374936View commit details -
Configuration menu - View commit details
-
Copy full SHA for a64103c - Browse repository at this point
Copy the full SHA a64103cView commit details -
Configuration menu - View commit details
-
Copy full SHA for ed7a910 - Browse repository at this point
Copy the full SHA ed7a910View commit details
Commits on Aug 18, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 3cf4a0f - Browse repository at this point
Copy the full SHA 3cf4a0fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6bfedb1 - Browse repository at this point
Copy the full SHA 6bfedb1View commit details -
Add missing functionality for connect and Provider
Added ability to swap stores Removed single-child limitation Added invariant warnings for storeKey and withRef Added valid element check using react-is Refactored child selector creation for reusability Added prop types for components Added forwardRef and consumer as prop capability Added a tiny memoized function for wrapper props handling Removed semicolons
Configuration menu - View commit details
-
Copy full SHA for 5df5a0f - Browse repository at this point
Copy the full SHA 5df5a0fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1fe01d0 - Browse repository at this point
Copy the full SHA 1fe01d0View commit details
Commits on Aug 24, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 0d0360f - Browse repository at this point
Copy the full SHA 0d0360fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 577efb0 - Browse repository at this point
Copy the full SHA 577efb0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7f72494 - Browse repository at this point
Copy the full SHA 7f72494View commit details
Commits on Sep 13, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 9210282 - Browse repository at this point
Copy the full SHA 9210282View commit details
Commits on Oct 25, 2018
-
Configuration menu - View commit details
-
Copy full SHA for b6a267a - Browse repository at this point
Copy the full SHA b6a267aView commit details
Commits on Oct 26, 2018
-
Configuration menu - View commit details
-
Copy full SHA for ef8aa4e - Browse repository at this point
Copy the full SHA ef8aa4eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3c0428b - Browse repository at this point
Copy the full SHA 3c0428bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6b8df35 - Browse repository at this point
Copy the full SHA 6b8df35View commit details -
Rewrite connectAdvanced to use hooks internally
Replaced multiple levels of class wrappers with a simple hook that reads the store state from context, initializes and uses the provided selector, and memoizes the wrapped component as needed. Updated Provider and connect to accept an entire context object as a prop, because `useContext` only works with a context object and not just the consumer. Also allows passing a new store instance to Provider, because we can easily reset the subscription aspect now. Updated tests.
Configuration menu - View commit details
-
Copy full SHA for d4ab1d8 - Browse repository at this point
Copy the full SHA d4ab1d8View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.