Skip to content

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

Merged
merged 2 commits into from
Jun 29, 2025
Merged

Fixed updateFn doc #202

merged 2 commits into from
Jun 29, 2025

Conversation

mainendra
Copy link
Contributor

@mainendra mainendra commented Jun 1, 2025

updateValue is a function so can not return function + number. If it's not expected behaviour then we need to fix library.

Copy link

@ViewableGravy ViewableGravy left a 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

Comment on lines 39 to 40
updateFn: (prevValue) => updateValue => {
return updateValue + prevValue;
return updateValue(prevValue) + previous;

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) => {
  ...

Copy link
Contributor Author

@mainendra mainendra Jun 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link

nx-cloud bot commented Jun 29, 2025

View your CI Pipeline Execution ↗ for commit 29369fc.

Command Status Duration Result
nx affected --targets=test:sherif,test:knip,tes... ✅ Succeeded 54s View ↗
nx run-many --target=build --exclude=examples/** ✅ Succeeded 1s View ↗

☁️ Nx Cloud last updated this comment at 2025-06-29 07:18:17 UTC

Copy link

pkg-pr-new bot commented Jun 29, 2025

@tanstack/angular-store

npm i https://pkg.pr.new/@tanstack/angular-store@202

@tanstack/react-store

npm i https://pkg.pr.new/@tanstack/react-store@202

@tanstack/solid-store

npm i https://pkg.pr.new/@tanstack/solid-store@202

@tanstack/store

npm i https://pkg.pr.new/@tanstack/store@202

@tanstack/svelte-store

npm i https://pkg.pr.new/@tanstack/svelte-store@202

@tanstack/vue-store

npm i https://pkg.pr.new/@tanstack/vue-store@202

commit: 29369fc

@crutchcorn crutchcorn merged commit 7073e60 into TanStack:main Jun 29, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants