From b2dd96273576363e27d21bc2742a53a98840eab2 Mon Sep 17 00:00:00 2001 From: wobsoriano Date: Thu, 22 Jun 2023 09:41:28 -0700 Subject: [PATCH] rollback to 0.3.0 updates --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index c67d101..9aa56be 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,11 +1,11 @@ -import { isProxy, toRaw, watch } from 'vue-demi'; +import { watch } from 'vue-demi'; import type { MethodType } from 'broadcast-channel'; import { BroadcastChannel as BroadcastChannelImpl } from 'broadcast-channel'; import type { PiniaPluginContext, Store } from 'pinia'; import * as devalue from 'devalue'; function removeProxy(state: T): T { - return isProxy(state) ? toRaw(state) : devalue.parse(devalue.stringify(state)); + return devalue.parse(devalue.stringify(state)); } /**