chore(provider): dont use store create helper

This commit is contained in:
moklick
2023-06-28 16:33:00 +02:00
parent a31b19b21f
commit 5324e51060
2 changed files with 8 additions and 4 deletions
@@ -1,9 +1,13 @@
<script lang="ts">
import { onDestroy } from 'svelte';
import { onDestroy, setContext } from 'svelte';
import { createStoreContext } from '$lib/store';
import { createStore, key } from '$lib/store';
const store = createStoreContext();
const store = createStore();
setContext(key, {
getStore: () => store
});
onDestroy(() => {
store.reset();