My worry is something like the following:
1/
render is interrupted
Can that same render be re-run but...with older state? That's not possible, is it? Except with useTransition, but in that case the new-state renders / old-state renders are in separate trees?
2/
useQuery existing w/ data for query "A"
useQuery called with query "B"
currentQuery.current set to "B"—fetch()
useQuery re-renders w/ old query state "A"
ref set to "A"
promise for "B" resolves—wrongly thinks it's outdated bc mismatching ref
I'm just trying to nail down whether it's safe for a ref in a data fetching hook to maintain a ref to that updated value, or if CM will jack that assumption up.
/N