Repository navigation
fix(react-start-client): preserve idle hydration deadlines - #8272
LadyBluenotes wants to merge 8 commits into
Conversation
|
View your CI Pipeline Execution ↗ for commit eb2cf90
☁️ Nx Cloud last updated this comment at |
🚀 Changeset Version Preview2 package(s) bumped directly, 12 bumped as dependents. 🟩 Patch bumps
|
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the
Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Idle strategy identity contract packages/start-client-core/src/hydration/types.ts, packages/start-client-core/src/hydration/idle.ts |
The idle setup function exposes its normalized timeout through _i. The hydration strategy type supports this optional property. |
React hydration scheduling integration packages/react-start-client/src/GenericHydrate.tsx |
React hydration stores the latest strategy and uses a stable strategy key and strategy type to control effect execution. |
Scheduling behavior validation and documentation packages/react-start-client/src/tests/Hydrate.test.tsx, docs/start/framework/react/guide/deferred-hydration.md, .changeset/idle-hydration-deadline.md |
Tests cover deadline preservation, timeout changes, custom setup replacement, and unmount cancellation. Documentation and release metadata describe the scheduling behavior. |
Priority:
Estimated code review effort: 3 (Moderate) | ~20 minutes
Change: Bug fix
Merge Risk: 
Minimal · up to eb2cf
-
The change preserves pending idle hydration and correctly replaces or cancels schedules when required.
Pre-merge checks: 
4 · 
1
-
Failed checks: 1 warning Passed checks: 4 passedFull details: Docstring Coverage
-
Explanation
Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 7 functions across 4 files. (1 skipped: 1 unsupported.)
Resolution
Write docstrings for the functions missing them to satisfy the coverage threshold.
-
Finishing Touches
-
🧪 Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Comment @coderabbitai help to get the list of available commands.
Bundle Size BenchmarksThis pull request does not affect bundle size in any measured scenario. |
More templates
@tanstack/arktype-adapter
@tanstack/eslint-plugin-router
@tanstack/eslint-plugin-start
@tanstack/history
@tanstack/react-router
@tanstack/react-router-devtools
@tanstack/react-router-ssr-query
@tanstack/react-start
@tanstack/react-start-client
@tanstack/react-start-rsc
@tanstack/react-start-server
@tanstack/router-cli
@tanstack/router-core
@tanstack/router-devtools
@tanstack/router-devtools-core
@tanstack/router-generator
@tanstack/router-plugin
@tanstack/router-ssr-query-core
@tanstack/router-utils
@tanstack/router-vite-plugin
@tanstack/solid-router
@tanstack/solid-router-devtools
@tanstack/solid-router-ssr-query
@tanstack/solid-start
@tanstack/solid-start-client
@tanstack/solid-start-server
@tanstack/start-client-core
@tanstack/start-fn-stubs
@tanstack/start-plugin-core
@tanstack/start-server-core
@tanstack/start-static-server-functions
@tanstack/start-storage-context
@tanstack/valibot-adapter
@tanstack/virtual-file-routes
@tanstack/vue-router
@tanstack/vue-router-devtools
@tanstack/vue-router-ssr-query
@tanstack/vue-start
@tanstack/vue-start-client
@tanstack/vue-start-server
@tanstack/zod-adapter
commit: |
Merging this PR will not alter performance1 warning
Comparing Footnotes
|
There was a problem hiding this comment.
Nx Cloud has identified a flaky task in your failed CI:
🔂 Since the failure was identified as flaky, we triggered a CI rerun by adding an empty commit to this branch.
🎓 Learn more about Self-Healing CI on nx.dev
🦋 Changeset detectedLatest commit: eb2cf90 The changes in this PR will be included in the next version bump. This PR includes changesets to release 14 packages
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 |
🎯 Changes
Inline
idle()calls create new strategy objects on each render, which restarted pending hydration. Keep the existing schedule when its timeout is unchanged, while preserving timeout and strategy changes, custom setup overrides, and unmount cleanup.✅ Checklist
🚀 Release Impact
Summary by CodeRabbit
Bug Fixes
Documentation