Skip to content

Commit

Permalink
chore: Fix error in documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
luowei committed Aug 22, 2023
1 parent 0058a03 commit 6e476a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/guides/auto-generating-selectors.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ const createSelectors = <S extends StoreApi<object>>(_store: S) => {
const store = _store as WithSelectors<typeof _store>
store.use = {}
for (const k of Object.keys(store.getState())) {
;(store.use as any)[k] = () =>
useStore(_store, (s) => s[k as keyof typeof s])
(store.use as any)[k] = () =>
useStore(_store, (s) => s[k as keyof typeof s]);
}

return store
Expand Down

0 comments on commit 6e476a4

Please sign in to comment.