Closed
Description
In a world where portions of the component tree can hydrate and become intractable with child components still being suspended, does documentation / guidance exist on how to handle these cases?
Example: https://simple-remix-deferred-demo.fly.dev/
Green: Hydrated
Red: Suspended
Clicking either of the "Link" elements in the hydrated portion of the page, this will trigger a re-render and causes the suspense boundary to receive an update before it finishes: https://reactjs.org/docs/error-decoder.html/?invariant=421 This isn't an issue in terms of app functionality as implemented as I was under the assumption parent updates from interactive components would be expected, I mean, why wouldn't they?
So I guess there are a few questions I have:
- Why does react log this error? Is it an actual error?
- Are there implications I can't think of that would cause your average bare bones suspense usage to fall over and that's the reason this message exists?
- When you expect updates to happen when boundaries are still suspended, is there a documented way to handle this to avoid this message?