From 4b247ff7bcce48a89ed59e100bbbb161b996d608 Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Tue, 20 Jul 2021 09:40:24 +0200 Subject: [PATCH] chore: hot with dev --- src/store.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store.ts b/src/store.ts index 51f3999b..fe13c808 100644 --- a/src/store.ts +++ b/src/store.ts @@ -189,7 +189,7 @@ function createSetupStore< let debuggerEvents: DebuggerEvent[] | DebuggerEvent const initialState = pinia.state.value[$id] as UnwrapRef | undefined - if (!initialState && !hot) { + if (!initialState && __DEV__ && !hot) { // should be set in Vue 2 pinia.state.value[$id] = {} } -- 2.47.2