docs(preact-query/reference): switch to React reference reuse via 'ref:' like vue-query - #11204
docs(preact-query/reference): switch to React reference reuse via 'ref:' like vue-query#11204sukvvon wants to merge 1 commit into
Conversation
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
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 a36b236
☁️ Nx Cloud last updated this comment at |
🚀 Changeset Version PreviewNo changeset entries found. Merging this PR will not cause a version bump for any packages. |
…f:' like vue-query
size-limit report 📦
|
a36b236 to
0b75856
Compare
🎯 Changes
Switches
docs/framework/preact/reference/*from TypeDoc-generated output to manually-authored files thatref:the existing React reference docs, the same mechanismvue-queryalready uses.Depends on #11205 (removes
preact-queryfromscripts/generate-docs.ts's TypeDoc generation targets) — that PR must merge first, otherwise the nextgenerate-docsrun would overwrite these manually-authored files with TypeDoc output again.docs/framework/preact/reference/(functions/,interfaces/,type-aliases/,variables/,index.md)..mdfiles, each withref: docs/framework/react/reference/{name}.mdandreplace: { '@tanstack/react-query': '@tanstack/preact-query' }, matchingvue-query's convention.useInfiniteQuery.mdadditionally wraps the React-onlyReact.use()line with the existing[//]: # 'ReactUse'marker (same marker introduced forvue-queryin docs(vue-query/reference): hide React-only 'React.use()' mention from useInfiniteQuery #11203), so it's excluded from the Preact page.docs/config.jsonso the Preact API Reference sidebar entries point at the new flat paths instead offunctions/*, and removes the now-unusedindexentry.Verified: all 20
topaths indocs/config.jsonresolve to existing files (no dead links),pnpm run generate-docsruns cleanly without touching Preact, and each converted page's function signature matches the corresponding React source exactly except for one pre-existing, non-visible difference inchildrenprop typing.Note:
QueryErrorResetBoundary.mdanduseQueryErrorResetBoundary.mdinherit theirreact-error-boundaryexample from the React source, the same wayvue-queryhas inherited it since it adoptedref:.✅ Checklist
pnpm run test:pr.🚀 Release Impact