mirror of
https://github.com/pmndrs/zustand.git
synced 2025-12-08 19:45:52 +00:00
Refactor useBoundStore and useLocalAndUrlStore (#3277)
This commit is contained in:
parent
2a419514d1
commit
6422fa8898
@ -29,7 +29,7 @@ const hashStorage: StateStorage = {
|
||||
},
|
||||
}
|
||||
|
||||
export const useBoundStore = create(
|
||||
export const useBoundStore = create()(
|
||||
persist(
|
||||
(set, get) => ({
|
||||
fishes: 0,
|
||||
@ -102,7 +102,7 @@ const storageOptions = {
|
||||
storage: createJSONStorage<LocalAndUrlStore>(() => persistentStorage),
|
||||
}
|
||||
|
||||
const useLocalAndUrlStore = create(
|
||||
const useLocalAndUrlStore = create()(
|
||||
persist<LocalAndUrlStore>(
|
||||
(set) => ({
|
||||
typesOfFish: [],
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user