docs(preact): add missing polling guide#11004
Conversation
`isLoading` is a deprecated alias for `isPending && isFetching` and is scheduled for removal in the next major version. The overview example shows a standard (always-enabled) query, so `isPending` is the correct flag. All other framework overview docs (React, Vue, Angular, Lit, Preact) already use `isPending`. Note: `isLoading` is intentionally retained in disabling-queries guides where it is the right flag for disabled/lazy queries. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
The Polling guide existed for React, Vue, Solid, and Angular but was missing from the Preact docs. Added the ref stub and wired it into the nav config between Window Focus Refetching and Disabling Queries, matching the ordering used by all other frameworks. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughAdds a "Polling" entry to the Preact guides navigation in ChangesDocs: Preact Polling Guide and Svelte Overview Fix
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related PRs
Poem
🚥 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 |
Summary
The Preact framework was missing a polling guide that all other frameworks (React, Vue, Solid) already have.
docs/framework/preact/guides/polling.mdusing theref:pattern to reuse the React polling guide with the package name substituteddocs/config.jsonin the Preact guides section (betweenwindow-focus-refetchinganddisabling-queries)Changes
docs/framework/preact/guides/polling.md: New file referencing React polling docsdocs/config.json: Added polling nav entry for PreactTest plan
@tanstack/preact-querypackage reference is correctSummary by CodeRabbit