issues
search
isographlabs
/
isograph
The UI framework for teams that move fast — without breaking things.
MIT License
202
stars
9
forks
source link
Bug: `useLazyReference` (et al) do not retain queries
#88
Open
rbalicki2
opened
2 days ago
rbalicki2
commented
2 days ago
useResult
retains the query. This probably should be done in
useLazyReference
instead, because
you're not guaranteed to call
useResult
immediately
in fact, you probably shouldn't! It should be wrapped in a suspense boundary and error fallback, meaning that the retention can happen far later
multiple calls to
useResult
in the same tree will be retained serially in React 19, instead of all at once
useResult
retains the query. This probably should be done inuseLazyReference
instead, becauseuseResult
immediatelyuseResult
in the same tree will be retained serially in React 19, instead of all at once