Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
yf-yang committed Feb 15, 2025
1 parent 6d9fd57 commit 697a955
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ const unsubscribe = store.subscribe('state', (state) => {
});

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

Expand Down
2 changes: 1 addition & 1 deletion packages/zustand-x/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ const unsubscribe = store.subscribe('state', (state) => {
});

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

Expand Down

0 comments on commit 697a955

Please sign in to comment.