injectStore and similar store-injecting injectors shouldn't call ecosystem._consumeHydration() when their hydrate option is true since that breaks injector composability. Instead, always call ecosystem._consumeHydration() once, after evaluation is over. This allows all injectors that want it to receive the hydration.
Description
injectStore
and similar store-injecting injectors shouldn't callecosystem._consumeHydration()
when theirhydrate
option is true since that breaks injector composability. Instead, always callecosystem._consumeHydration()
once, after evaluation is over. This allows all injectors that want it to receive the hydration.@affects atoms, immer, machines