Skip to content

Commit

Permalink
Update auto-generating-selectors.md
Browse files Browse the repository at this point in the history
fix typo
  • Loading branch information
vorant94 authored Jan 1, 2025
1 parent 2e6d881 commit 0027311
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 0027311

Please sign in to comment.