react-router icon indicating copy to clipboard operation
react-router copied to clipboard

Bug Report: Process crash when suspense route faster than layout

Open richardszalay opened this issue 6 months ago • 3 comments

If a route:

  1. Uses suspense
  2. Has a layout that also has a loader (non-suspense)
  3. The route's suspense promise rejects before the layout's loader completes

Then the promise is uncaught and the entire node process exits.

The issue does not occur if any of the following are true:

  1. The route's suspense promise does not reject until after the layout's loader complete
  2. The layout does not define a loader

richardszalay avatar May 09 '25 05:05 richardszalay

⚠️ No Changeset found

Latest commit: 26b47a7e5ff33520b8b7cbb1529103c4f401575c

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

changeset-bot[bot] avatar May 09 '25 05:05 changeset-bot[bot]

Hi @richardszalay,

Welcome, and thank you for contributing to React Router!

Before we consider your pull request, we ask that you sign our Contributor License Agreement (CLA). We require this only once.

You may review the CLA and sign it by adding your name to contributors.yml.

Once the CLA is signed, the CLA Signed label will be added to the pull request.

If you have already signed the CLA and received this response in error, or if you have any questions, please contact us at [email protected].

Thanks!

- The Remix team

remix-cla-bot[bot] avatar May 09 '25 05:05 remix-cla-bot[bot]

Thank you for signing the Contributor License Agreement. Let's get this merged! 🥳

remix-cla-bot[bot] avatar May 09 '25 05:05 remix-cla-bot[bot]