We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2dcc3ef commit 11eed2bCopy full SHA for 11eed2b
__tests__/ssr/app/main.ts
@@ -8,8 +8,8 @@ import { useStore, clear } from './store'
8
9
export function createApp() {
10
// create router and store instances
11
- clear()
12
const store = useStore()
+ store.reset()
13
14
store.state.counter++
15
src/index.ts
@@ -58,10 +58,6 @@ export function createStore<
58
// methods: Record<string | symbol, StoreMethod>
59
): CombinedStore<Id, S, G> {
60
const state: Ref<S> = ref(buildState())
61
- // TODO: do we need this?
62
- function replaceState(newState: S) {
63
- state.value = newState
64
- }
65
66
let isListening = true
67
let subscriptions: SubscriptionCallback<S>[] = []
0 commit comments