-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Description
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
-
- We should be able to just migrate over to
componentDidMountwithout much difference.
- We should be able to just migrate over to
-
getDerivedStateFromPropsis another easy replacement here
-
Registering subscriptions in
componentWillMount- We can probably make use of the new
create-subscriptionlibrary to make this even better.
- We can probably make use of the new
Other potienally useful things
createRef- I noticed that we create refs on
connectwhich 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. 🤷♂️
- I noticed that we create refs on
context- There is the new context api which might be useful for providing the store connections. It looks pretty sweet.
suspense- Being able to suspend some store subscriptions would be nice for fetching data.
@colbyr @marcneuwirth @Phoenixmatrix @WhoeverElseCaresAboutGeneralStore
theopak
Metadata
Metadata
Assignees
Labels
No labels