hi, may I know how to make the store shareable / a...
# mvikotlin
s
hi, may I know how to make the store shareable / as an instance between different between different components?
a
By "components" you mean Decompose?
s
@aiidziis correct I tried to use InstanceKeeper to create store, but the returned InstsanceKeeper is not the same because each component has its own
ComponentContext
provided by Decompose (According to the decompose’s doc)
a
Alright. In this case I think you should create your store using
InstanceKeeper
in the common parent component, and then pass it down to all required child components via constructor.
thank you color 1