Skip to content

Should useRevalidator be stable? #10702

Closed Answered by brophdawg11
charliematters asked this question in Q&A
Discussion options

You must be logged in to vote

It will change on revalidations because it also returns useRevalidator().state which can change. But we should probably memoize it internally based on state so the object is stable on re-renders when a revalidation is not in progress.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@charliematters
Comment options

@brophdawg11
Comment options

@brophdawg11
Comment options

Answer selected by charliematters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants