Skip to content

Commit

Permalink
chore: fix readme typo
Browse files Browse the repository at this point in the history
  • Loading branch information
InfiniteXyy committed Jun 30, 2023
1 parent fd3a7e6 commit 596d593
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ const module = defineModule({ pokemonIndex: 0, input: '' })
.subscribe((state, prevState) => console.log(state)) // subscribe to the whole store
.subscribe({
selector: (state) => state.pokemonIndex, // only subscribe to some property
listener: async ({ pokemonIndex }, prev, { addCleanup }) => {
listener: async (pokemonIndex, prev, { addCleanup }) => {
const abortController = new AbortController();
const abortSignal = abortController.signal;
addCleanup(() => abortController.abort());
Expand Down

0 comments on commit 596d593

Please sign in to comment.