You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
We're about to land a new context API that lines up with React's context API.
We should port Roact-Rodux to this new API in order to not hold up removal of the old context API.
I did a rough evaluation of this today and found:
UNSTABLE_getStore
may be infeasible to replace, but is used internally at Roblox in a number of places.StoreProvider
is easy to changeconnect
will need significant non-trivial changes and is already difficult to grokThe text was updated successfully, but these errors were encountered: