Skip to content

Conversation

@ntucker
Copy link
Collaborator

@ntucker ntucker commented Jan 25, 2026

Motivation

The SSRDataProvider component was using BackupLoading as its Suspense fallback, which displays an "Uncaught Suspense" warning in development mode. This warning is misleading during Next.js server-side rendering because:

  • Suspense during SSR is expected behavior for data fetching
  • The warning suggests user error when none exists
  • The message can appear in the HTML output before hydration

Solution

Replace the BackupLoading fallback with null in SSRDataProvider. This silences the confusing warning while maintaining the same functional behavior - the outer Suspense boundary still catches suspense during SSR, just without rendering a misleading development message.


Note

Removes the misleading "Uncaught Suspense" dev warning during Next.js SSR by changing the Suspense fallback in SSRDataProvider.

  • In SSRDataProvider, replace BackupLoading with null as UniversalSuspense fallback to avoid the warning during expected SSR suspense
  • Add a changeset for a patch release of @data-client/react
  • Update the v0.16 release blog with the improvement note

Written by Cursor Bugbot for commit d93d145. This will update automatically on new commits. Configure here.

@changeset-bot
Copy link

changeset-bot bot commented Jan 25, 2026

🦋 Changeset detected

Latest commit: d93d145

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@data-client/react Patch
test-bundlesize Patch
coinbase-lite Patch

Not sure what this means? Click here to learn what changesets are.

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

@github-actions
Copy link
Contributor

Size Change: 0 B

Total Size: 79.8 kB

ℹ️ View Unchanged
Filename Size
examples/test-bundlesize/dist/App.js 3.42 kB
examples/test-bundlesize/dist/polyfill.js 308 B
examples/test-bundlesize/dist/rdcClient.js 10.2 kB
examples/test-bundlesize/dist/rdcEndpoint.js 5.84 kB
examples/test-bundlesize/dist/react.js 59.4 kB
examples/test-bundlesize/dist/webpack-runtime.js 726 B

compressed-size-action

@codecov
Copy link

codecov bot commented Jan 25, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.13%. Comparing base (4322378) to head (d93d145).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3718   +/-   ##
=======================================
  Coverage   98.13%   98.13%           
=======================================
  Files         150      150           
  Lines        2736     2736           
  Branches      537      537           
=======================================
  Hits         2685     2685           
  Misses         11       11           
  Partials       40       40           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@ntucker ntucker merged commit c7f8c79 into master Jan 25, 2026
24 checks passed
@ntucker ntucker deleted the nextjs-fallbackmsg branch January 25, 2026 04:17
@github-actions github-actions bot mentioned this pull request Jan 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants