provideStore
The provideStore function registers a Store with a given Id into the current Provider context, making it available to all descendant components.
provideStore(
storeId: string,
store: Store,
): voidThis function must be called inside a Svelte component's <script> block that is a descendant of a Provider component.
Since
v8.1.0