docs(react-query, preact-query): use 'button' instead of undefined 'Button' in suspense guide examples - #11390
Conversation
…utton' in suspense guide examples
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review. 📝 WalkthroughWalkthroughThe Preact and React Suspense guides replace ChangesSuspense guide examples
Estimated code review effort: 1 (Trivial) | ~2 minutes Merge Risk: ⚪ Minimal · up to The React and Preact Suspense guides now use native buttons for all documented error-boundary retry actions, fixing the undefined component examples without changing library behavior. The change is ready to merge. Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
|
View your CI Pipeline Execution ↗ for commit 320b448
☁️ Nx Cloud last updated this comment at |
size-limit report 📦
|
🚀 Changeset Version Preview2 package(s) bumped directly, 23 bumped as dependents. 🟨 Minor bumps
🟩 Patch bumps
|
🎯 Changes
The "Resetting Error Boundaries" examples in
guides/suspense.mduse<Button onClick={...}>Try again</Button>, butButtonis never imported or defined — copying the example as-is throwsButton is not defined. Replaced with the plain<button>element the rest of the docs' examples consistently use (e.g.disabling-queries.md,mutations.md,paginated-queries.md).docs/framework/react/guides/suspense.md: fixes both occurrences (component-based and hook-based reset examples).docs/framework/preact/guides/suspense.md: the same two occurrences in itsExampleResetComponent/ExampleResetHookoverride sections (added in docs(preact-query): add 'Suspense' and 'Testing' guides #11377, which inherited the bug from react's original viaref:).Found while reviewing #11377 for a related issue (#11389).
✅ Checklist
pnpm run test:pr, or these tests do not apply to this pull request.🚀 Release Impact
Summary by CodeRabbit
<button>element for “Try again” actions.QueryErrorResetBoundaryanduseQueryErrorResetBoundaryexamples with the same native button usage.