We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e1e573 commit add0267Copy full SHA for add0267
frameworks/keyed/react-zustand/src/main.jsx
@@ -8,7 +8,7 @@ const useStore = create((set) => ({
8
selected: null,
9
run: () => set({ data: buildData(1000) }),
10
runLots: () => set({ data: buildData(10000) }),
11
- add: () => set((state) => ({ data: [...state.data, buildData(1000)] })),
+ add: () => set((state) => ({ data: [...state.data, ...buildData(1000)] })),
12
update: () =>
13
set((state) => {
14
let newData = state.data.slice(0)
0 commit comments