Refactor useBoundStore and useLocalAndUrlStore (#3277)

This commit is contained in:
Danilo Britto 2025-10-28 21:25:41 -05:00 committed by GitHub
parent 2a419514d1
commit 6422fa8898
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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: [],