Map of named stores. Allows organizing multiple stores under a single object.
Optional type for the store values
const firstStore = createStore({ value: "Hello" });const secondStore = createStore({ value: "World" });const storeMap: StoreMap<{ first: string, second: string }> = { first: firstStore, second: secondStore}; Copy
const firstStore = createStore({ value: "Hello" });const secondStore = createStore({ value: "World" });const storeMap: StoreMap<{ first: string, second: string }> = { first: firstStore, second: secondStore};
Map of named stores. Allows organizing multiple stores under a single object.