You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey everyone, while reading about auto generating selectors I bumped into this example with bears: number value in the store and selector for that value is described in the docs like so:
const bears = useBearStore.use.bears()
As you can see bears is called like a function here. When I try to replicate this example I get an error that bears is not callable, as it shouldn't be because it's a number.
Is there a mistake in the documentation or I am missing something?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey everyone, while reading about auto generating selectors I bumped into this example with
bears: number
value in the store and selector for that value is described in the docs like so:As you can see
bears
is called like a function here. When I try to replicate this example I get an error thatbears
is not callable, as it shouldn't be because it's anumber
.Is there a mistake in the documentation or I am missing something?
Beta Was this translation helpful? Give feedback.
All reactions