From: Eduardo San Martin Morote Date: Tue, 26 Nov 2019 22:34:02 +0000 (+0100) Subject: refactor: remove old code X-Git-Tag: 0.1.0-alpha.0~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=11eed2b94e3d42de0cf7a3ef0e7e9cbbeb0c69bd;p=thirdparty%2Fvuejs%2Fpinia.git refactor: remove old code --- 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[] = []