-
Currently I'm experiencing some unexpected behavior. I'm using Is there any insight into why that might be? I know it's hard without code examples, I'll work to get a reproducible example. In short, would it be safe to assume that data should exist in the same life-cycle as I would expect the following order:
Instead, number 3 is two steps. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
For anyone who stumbles upon a similar, unexpected behavior: I was entering a state where the |
Beta Was this translation helpful? Give feedback.
For anyone who stumbles upon a similar, unexpected behavior:
I was entering a state where the
useSWR
hook'srevalidate()
was being called in auseEffect
, causing the anomaly above. Relocating therevalidate
in a promise elsewhere alleviated the issue.