Uh oh!
There was an error while loading. Please reload this page.
fix(react-router): do not wrap children in outlet in suspense unless (default)pendingComponent is configured - #2035
fix(react-router): do not wrap children in outlet in suspense unless (default)pendingComponent is configured#2035schiller-manuel wants to merge 2 commits into
Conversation
☁️ Nx Cloud ReportCI is running/has finished running commands for commit bc81168. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution
✅ Successfully ran 1 targetSent with 💌 from NxCloud. |
1f62d54 to
16a42fdCompare
This comment was marked as resolved.
This comment was marked as resolved.
schiller-manuel
commented
Jul 27, 2024
it maybe solves #2026 |
SeanCassiere
commented
Jul 27, 2024
Whoops, my bad, linked the wrong issue. |
schiller-manuel
commented
Jul 27, 2024
@tannerlinsley please have a look if omitting this suspense is ok, check #2026 for the motivation. one thing I dislike is that there is no way to opt out of suspense here if |
There was a problem hiding this comment.
one thing I dislike is that there is no way to opt out of suspense here if defaultPendingComponent is set.
This could be changed so that we don't use the defaultPendingComponent for the rootRoute and only rely on the rootRoute.pendingComponent. So if PendingComponent===undefined then just return nextMatch.
The only issue here is that this could be a breaking change for anyone currently relying on that default behaviour of not requiring a Suspense boundary above the RouterProvider.
We can ofc, get around this by introducing a future flag and stuff this new behaviour under that flag (and remove the old behaviour in v2).
lukasgeiter
commented
Aug 15, 2024
Is there anything I can do to move this along? |
…ng Outlet in Suspense
…efaultPendingComponent are configured
3518ac3 to
bc81168Comparelukasgeiter
commented
Nov 20, 2024
@SeanCassiere@schiller-manuel@tannerlinsley Is there any chance of getting at least the first commit merged? |
dy0gu
commented
Apr 30, 2025
Any updates on getting this merged? We would really appreciate it, some workarounds are getting messy! |
LadyBluenotes
commented
Jul 10, 2026
Closing this since the issue was addressed in #5495 |
No description provided.