fix devtools example (#3002)

This commit is contained in:
Andrii Oriekhov 2025-02-08 01:28:39 +02:00 committed by GitHub
parent c3287fa89d
commit c96cf83663
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -79,7 +79,7 @@ type JungleStore = {
}
const useJungleStore = create<JungleStore>()(
devtools((...args) => ({
devtools((set) => ({
bears: 0,
addBear: () =>
set((state) => ({ bears: state.bears + 1 }), undefined, 'jungle/addBear'),