You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<SuspenseListrevealOrder="together"><ErrorBoundaryfallback={null}><Suspensefallback={<h2>Loading posts...</h2>}><ProfileTimelineresource={resource}/></Suspense></ErrorBoundary><Suspensefallback={<h2>Loading fun facts...</h2>}><ProfileTriviaresource={resource}/></Suspense></SuspenseList>
revealOrder="forwards" does not crash as well as placing the error boundary inside the suspense boundary like so:
<SuspenseListrevealOrder="together"><Suspensefallback={<h2>Loading posts...</h2>}><ErrorBoundaryfallback={null}><ProfileTimelineresource={resource}/></ErrorBoundary></Suspense><Suspensefallback={<h2>Loading fun facts...</h2>}><ProfileTriviaresource={resource}/></Suspense></SuspenseList>
The expected behavior
The position of the ErrorBoundary is likely wrong in the first place (since I can move it around to not cause a crash while preserving the semantics I expect). Maybe this needs a descriptive warning/error why this is happening and how I should resolve it?
The text was updated successfully, but these errors were encountered:
React version: 0.0.0-experimental-aae83a4b9
Steps To Reproduce
<SuspenseList revealOrder="together" />
Cannot read property 'shared' of null
Link to code example:
https://codesandbox.io/s/quirky-cannon-e4t1c is forked from https://codesandbox.io/s/black-wind-byilt
The current behavior
The following code causes the described crash:
revealOrder="forwards"
does not crash as well as placing the error boundary inside the suspense boundary like so:The expected behavior
The position of the ErrorBoundary is likely wrong in the first place (since I can move it around to not cause a crash while preserving the semantics I expect). Maybe this needs a descriptive warning/error why this is happening and how I should resolve it?
The text was updated successfully, but these errors were encountered: