Skip to content

Commit 697a955

Browse files
committed
fix: typo
1 parent 6d9fd57 commit 697a955

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ const unsubscribe = store.subscribe('state', (state) => {
138138
});
139139

140140
// Subscribe to a selector with arguments
141-
const unsubscribe = store.subscribe('someSelector', 1, 2 (result) => {
141+
const unsubscribe = store.subscribe('someSelector', 1, 2, (result) => {
142142
console.log('Selector result changed:', result);
143143
});
144144

packages/zustand-x/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ const unsubscribe = store.subscribe('state', (state) => {
138138
});
139139

140140
// Subscribe to a selector with arguments
141-
const unsubscribe = store.subscribe('someSelector', 1, 2 (result) => {
141+
const unsubscribe = store.subscribe('someSelector', 1, 2, (result) => {
142142
console.log('Selector result changed:', result);
143143
});
144144

0 commit comments

Comments
 (0)