-
Notifications
You must be signed in to change notification settings - Fork 27
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
React 16 Updates #62
Comments
i wonder if it's worth releasing react 16 support as a new major version that would allow us to get rid of some of the legacy code in here. mixins are deprecated and could be removed, and without having dug too deeply into the code there are probably other bits that could be removed if we only had to support 16+ which would reduce the size of this package and potentially improve perf a bit. happy to look into it myself |
now that we have the hooks api....how much do we care about the other stuff? i'm happy to look into the other compatibility stuff as well since i'm familiar with the codebase now |
The life cycle methods on the
|
I believe #83 should solve all of the issues here |
#83 did fix most of these. The outstanding issues are the new context API and suspense. Haven't put too much thought into those so I'll leave this open for now |
So now that React 16.3 has landed a few internal methods have changed so general-store will need some changes to stay up to date.
Component methods being deprecated
componentWillMount
componentDidMount
without much difference.componentWillReceiveProps
getDerivedStateFromProps
is another easy replacement hereRegistering subscriptions in
componentWillMount
create-subscription
library to make this even better.Other potienally useful things
createRef
connect
which actually throws a warning if you try to do that on a stateless component. We might be able to use the new ref API to make this more seamless. 🤷♂️context
suspense
@colbyr @marcneuwirth @Phoenixmatrix @WhoeverElseCaresAboutGeneralStore
The text was updated successfully, but these errors were encountered: