Skip to content

Add unit test for RouterProvider/Suspense hydrateFallback race condition#14926

Open
RaphaelBronsveld wants to merge 2 commits intoremix-run:brophdawg11/hydrate-fallback-racefrom
RaphaelBronsveld:add-race-condition-test
Open

Add unit test for RouterProvider/Suspense hydrateFallback race condition#14926
RaphaelBronsveld wants to merge 2 commits intoremix-run:brophdawg11/hydrate-fallback-racefrom
RaphaelBronsveld:add-race-condition-test

Conversation

@RaphaelBronsveld
Copy link
Copy Markdown

@RaphaelBronsveld RaphaelBronsveld commented Mar 25, 2026

Simulate the race condition by dropping the subscriber before router initialises. This unit test should fail without the fix/workaround applied. Since it's heavily time-related I wasn't really able to think of another way of "simulating" this.

Requested by @brophdawg11 in #14356

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Mar 25, 2026

⚠️ No Changeset found

Latest commit: 96c4d34

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

@RaphaelBronsveld RaphaelBronsveld changed the title Add unit test simulating the race condition between router initialisation and subscriber Add unit test for RouterProvider/Suspense hydrateFallback race condition Mar 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant