Skip to content

Commit

Permalink
docs: fix code snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
aikoven committed Apr 23, 2024
1 parent c746c14 commit a9ba7e8
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 @@ -86,7 +86,7 @@ function useStoreValue<T>(store: ReadonlyStore<T>): T {
useEffect(() => {
const stop = run(async signal => {
for await (const value of watchStore(signal, store)) {
setState(value);
setValue(value);
}
});

Expand Down

0 comments on commit a9ba7e8

Please sign in to comment.