mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-09 20:29:36 +02:00
reset all stores, remove old ones
This commit is contained in:
@@ -116,8 +116,15 @@ export const useAppStore = createWithEqualityFn<AppSlice>()(
|
||||
merge: (persistedState, currentState) => {
|
||||
return merge(currentState, persistedState);
|
||||
},
|
||||
migrate: (persistedState, version) => {
|
||||
if (version <= 2) {
|
||||
return {} as AppState;
|
||||
}
|
||||
|
||||
return persistedState;
|
||||
},
|
||||
name: 'store_app',
|
||||
version: 2,
|
||||
version: 3,
|
||||
},
|
||||
),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user