Skip to content

fix: invalidate cached values after updating accessor functions - #5582

Closed
takoshi wants to merge 2 commits into
TanStack:mainfrom
takoshi:fix/cached-value
Closed

fix: invalidate cached values after updating accessor functions#5582
takoshi wants to merge 2 commits into
TanStack:mainfrom
takoshi:fix/cached-value

Conversation

@takoshi

@takoshi takoshi commented May 25, 2024

Copy link
Copy Markdown

What's this PR

#5363

The above issue reported that getValues returns stale cached values after changing accessor functions.

This PR fixes it.

8cd8449: add unit tests
f66f4e6: accessor functions are also held as cache, and it determines whether the cached data are fresh or stale.

@takoshi
takoshi marked this pull request as ready for review May 25, 2024 08:10
@EvanBarnesAZ

Copy link
Copy Markdown

Is this good to merge?

@nickzelei

Copy link
Copy Markdown

Would love to see this merged!

@lifeiscontent

Copy link
Copy Markdown

@tannerlinsley can we get some eyes on this? :)

@jaxxreal

Copy link
Copy Markdown

Hi @tannerlinsley, may you have a look at this one?

@adamtowerz

Copy link
Copy Markdown

@KevinVandy , (sorry to tag, saw you're active merging fixes on this repo) is it possible to get a review on this PR? I'm running into this problem and would like to avoid running a fork if this has a path to merge to main

@erlandsona

Copy link
Copy Markdown

I feel like I'm also running into this one fwiw.

alpha123 added a commit to alpha123/uma-tools that referenced this pull request Mar 8, 2026
see the removed comment in BasinnChart.tsx for exactly what bug was being fixed. fix ported from TanStack/table#5582.

improves performance significantly when updating hints

(also memoize some of the skill row components)
@aliceprobstexternalairbus

Copy link
Copy Markdown

Any news on this ? Any workaround maybe ? We're getting into the same issue.

@KevinVandy
KevinVandy deleted the branch TanStack:main August 4, 2026 04:41
@KevinVandy KevinVandy closed this Aug 4, 2026
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.

9 participants