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
Originally posted by charliematters July 14, 2023
I've got a hook which calls useRevalidator and ReactQuery's invalidateQueries to allow any component to refresh data.
I'm currently chasing down some unnecessary re-renders, and my useRevalidator hook is returning a new value each time.
The docs imply that it's a singleton under the hood, so I'd assumed that we could rely on useRevalidator not changing.
Have I misunderstood how this works?
The text was updated successfully, but these errors were encountered:
We just published version 6.15.0-pre.0 which involves this issue. If you'd like to take it for a test run please try it out and let us know what you think!
Discussed in #10702
Originally posted by charliematters July 14, 2023
I've got a hook which calls
useRevalidator
and ReactQuery'sinvalidateQueries
to allow any component to refresh data.I'm currently chasing down some unnecessary re-renders, and my
useRevalidator
hook is returning a new value each time.The docs imply that it's a singleton under the hood, so I'd assumed that we could rely on
useRevalidator
not changing.Have I misunderstood how this works?
The text was updated successfully, but these errors were encountered: