Skip to content
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

Use useLatest for cache max age and cache key #963

Closed
wants to merge 1 commit into from
Closed

Use useLatest for cache max age and cache key #963

wants to merge 1 commit into from

Conversation

sallomendo
Copy link

@sallomendo sallomendo commented Mar 11, 2022

What

bug #952

Why

cache and cacheKey are not being updated after the props change.

How

By using the useLatest just like the other props.

Checklist

Have you done all of these things?

  • Documentation added N/A
  • Tests N/A
  • TypeScript definitions updated N/A
  • Ready to be merged

@sallomendo sallomendo closed this Mar 14, 2022
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.

1 participant