-
Hi
I was assuming data in component B would update in response to state changes in component A. I could lift the state/setters to a parent but wanted to know if I'm missing anything. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
if you don't pass
This is the way. You need to make the client state accessible where you want to read server state that depends on it. |
Beta Was this translation helpful? Give feedback.
if you don't pass
from
andto
toComponentB
, you are not observing the same cache entry in both components. You need access tofrom
andto
in components that want to read data from that cache entry.This is the way. You need to make the client state accessible where you want to read server state that depends on it.