Skip to content

Commit add0267

Browse files
committed
fix add
1 parent 5e1e573 commit add0267

File tree

1 file changed

+1
-1
lines changed
  • frameworks/keyed/react-zustand/src

1 file changed

+1
-1
lines changed

frameworks/keyed/react-zustand/src/main.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const useStore = create((set) => ({
88
selected: null,
99
run: () => set({ data: buildData(1000) }),
1010
runLots: () => set({ data: buildData(10000) }),
11-
add: () => set((state) => ({ data: [...state.data, buildData(1000)] })),
11+
add: () => set((state) => ({ data: [...state.data, ...buildData(1000)] })),
1212
update: () =>
1313
set((state) => {
1414
let newData = state.data.slice(0)

0 commit comments

Comments
 (0)