// add the hotUpdate before plugins to allow them to override it
if (__DEV__) {
- store.hotUpdate = markRaw((newStore) => {
+ store._hotUpdate = markRaw((newStore) => {
newStore._hmrPayload.state.forEach((stateKey) => {
if (stateKey in store.$state) {
// @ts-expect-error
true
)
- hot.hotUpdate(newStore as any)
+ hot._hotUpdate(newStore as any)
// cleanup the state properties and the store from the cache
delete pinia.state.value[hotId]
*
* @internal
*/
- hotUpdate(useStore: Store<Id, S, G, A>): void
+ _hotUpdate(useStore: Store<Id, S, G, A>): void
/**
* Payload of the hmr update. Dev only.