Skip to content

useRef in in preact-render-to-string #3587

Answered by JoviDeCroock
fgnass asked this question in Q&A
Discussion options

You must be logged in to vote

This is the same in React though, hooks get reset between suspensions as it's the only way to safely handle WIP states, discarding them. What we did in urql was create an append-only cache to store the promise-->result transition.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by fgnass
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