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.createContext() by @cellog #1000
Commits on Oct 28, 2018
-
-
-
fix renderCountProp, add a test
also clean up unused canary values
-
-
expose context consumer and provider
This will allow third party apps to use these in their code
-
* export Context instead of just Consumer/Provider * fix error messages for removed functionality * minor displayName change
-
keep prop-types in production minified UMD build
when the time is right, one need only change the BABEL_ENV for build:umd:min back to "rollup-production"
-
performance optimizations: HEADS UP API change too
* React.forwardRef is VERY slow, on the order of 2x slower in our benchmark. So we only enable it if withRef="forwardRef" folks using withRef=true will get an error telling them to update and not rely on getWrappedInstance() but just to use the ref directly * renderCountProp is removed, as this is natively supported in React dev tools now * all usages of shallowEquals are removed for pure components, it was unnecessary. * instead of allowing passing in a custom Context consumer in props, it is now required to be passed in via connect options at declaration time.
-
-
-
-
-
Commits on Oct 31, 2018
Commits on Nov 1, 2018
Commits on Nov 6, 2018
-
Rework connect tests, combine warnings, and remove observedBits
Ported connect test handling from 995 Deduped the "custom store context" messages Removed use of observedBits for now Commented out derivedProps propTypes that caused test failures
-
Rework connect component based on review notes
Removed use of PureWrapper Used React.memo() on the wrapped component Renamed and extracted makeDerivedPropsSelector Added makeChildElementSelector Simplified render props callback Simplified forwardRef handling
-
-
-
-
-