mirror of
https://github.com/pmndrs/zustand.git
synced 2025-12-08 19:45:52 +00:00
fix devtools example (#3002)
This commit is contained in:
parent
c3287fa89d
commit
c96cf83663
@ -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'),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user