Probably is React.createContext
.
Now, what I’ve observed while editing a older AnimationClipEditor version that used Roact and Rodux.
It contained a MainProvider that created rhings that contained the word “Context” which put stuff inside _context
with Symbols. Rodux’s guide doesn’t even contain this, it just says to use Rodux.StoreProvider
.
But regardless there’s a new thing that I am not sure about now.
For the older version of the AnimationClipEditor, I split up the Rodux Stores and forced them to sync their data together through middlewares with :dispatch
. While, this doesn’t sound good… it worked…
But the thing is, I only had to middleware, a few Action types only. But I don’t believe there’s a good way to communicate with multiple stores, especially for inheriting or syncing values. Syncing values does sound bad though.
But there wasn’t a clean way, and now I am wondering about what React has.
I haven’t explored React’s way yet. MainProvider
in AnimationClipEditor was too dank for me, because it wanted to use ContextItem stuff. So, I had to use Rodux.StoreProvider
anyways to proceed, and store all the stores in a table.