Using server actions with React.use
Unanswered
Yacare Caiman posted this in #help-forum
Yacare CaimanOP
It is an "allowed/good" pattern to call a server action in render with e.g.
React.use? I'm building a search UI similar to https://react.dev/reference/react/useDeferredValue#showing-stale-content-while-fresh-content-is-loading. Everything works fine, however I'm getting a Warning: Cannot update a component (Router) while rendering a different component warning. Not sure if I'm abusing server actions or if this is a bug?