-
-
Notifications
You must be signed in to change notification settings - Fork 58
Fixed updateFn doc #202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed updateFn doc #202
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A "while you are here" comment, otherwise this change makes sense
docs/quick-start.md
Outdated
updateFn: (prevValue) => updateValue => { | ||
return updateValue + prevValue; | ||
return updateValue(prevValue) + previous; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While you are here, given the prevValue
is using ()
arrow function syntax, would it also make sense to define updateValue
in ()
syntax for consistency?
updateFn: (prevValue) => (updateValue) => {
...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ViewableGravy Done
View your CI Pipeline Execution ↗ for commit 29369fc.
☁️ Nx Cloud last updated this comment at |
@tanstack/angular-store
@tanstack/react-store
@tanstack/solid-store
@tanstack/store
@tanstack/svelte-store
@tanstack/vue-store
commit: |
updateValue
is a function so can not return function + number. If it's not expected behaviour then we need to fix library.