From 11eed2b94e3d42de0cf7a3ef0e7e9cbbeb0c69bd Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Tue, 26 Nov 2019 23:34:02 +0100 Subject: [PATCH] refactor: remove old code --- __tests__/ssr/app/main.ts | 2 +- src/index.ts | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/__tests__/ssr/app/main.ts b/__tests__/ssr/app/main.ts index 96020e2d..fabda861 100644 --- a/__tests__/ssr/app/main.ts +++ b/__tests__/ssr/app/main.ts @@ -8,8 +8,8 @@ import { useStore, clear } from './store' export function createApp() { // create router and store instances - clear() const store = useStore() + store.reset() store.state.counter++ diff --git a/src/index.ts b/src/index.ts index fafbb238..f92d7f00 100644 --- a/src/index.ts +++ b/src/index.ts @@ -58,10 +58,6 @@ export function createStore< // methods: Record ): CombinedStore { const state: Ref = ref(buildState()) - // TODO: do we need this? - function replaceState(newState: S) { - state.value = newState - } let isListening = true let subscriptions: SubscriptionCallback[] = [] -- 2.47.2