Function: createStore()
createStore<
T>(storeSettingsOrEnhancer?,enhancer?):Store<T>
Defined in: store.ts:147
Creates a new store instance.
This function initializes a store with the provided mainModule configuration and optional store enhancer. It also accepts store settings that define various configuration options for the store. The storeSettings parameter defaults to defaultStoreSettings if not provided.
Type Parameters
T
T = any
Parameters
storeSettingsOrEnhancer?
enhancer?
Returns
Store<T>