Audit landing page examples against docs#968
Conversation
📝 WalkthroughWalkthroughLanding pages across all TanStack libraries are updated with revised messaging, new code examples, and expanded framework support. Changes emphasize CLI-first workflows, typed workflows with explicit run state, and Config's Changesets integration, while consolidating code examples to focus on React patterns. ChangesLanding Pages and Documentation Updates
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@src/components/landing/StoreLanding.tsx`:
- Around line 103-105: The example currently shows a broad subscription via
store.subscribe(listener) which contradicts the page's "Subscriptions stay
narrow" messaging; update the example in StoreLanding.tsx to demonstrate a
selector-based subscription (i.e., subscribe to a specific slice/property rather
than the whole store) by replacing the broad call store.subscribe(listener) with
a targeted subscription using a selector (or add a brief clarifying note if you
intend to show a global subscription use-case), and ensure the example aligns
with the landing copy about narrow subscriptions.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 1e14387e-b595-4931-9d64-a92fb57e6d69
📒 Files selected for processing (17)
src/components/landing/AiLanding.tsxsrc/components/landing/CliLanding.tsxsrc/components/landing/ConfigLanding.tsxsrc/components/landing/DbLanding.tsxsrc/components/landing/DevtoolsLanding.tsxsrc/components/landing/FormLanding.tsxsrc/components/landing/HotkeysLanding.tsxsrc/components/landing/IntentLanding.tsxsrc/components/landing/PacerLanding.tsxsrc/components/landing/QueryLanding.tsxsrc/components/landing/RangerLanding.tsxsrc/components/landing/RouterLanding.tsxsrc/components/landing/StoreLanding.tsxsrc/components/landing/WorkflowLanding.tsxsrc/components/landing/codeExamples.server.tsxsrc/libraries/libraries.tssrc/utils/config.ts
| label: 'effect', | ||
| value: 'store.subscribe(selector, listener)', | ||
| value: 'store.subscribe(listener)', | ||
| }, |
There was a problem hiding this comment.
Subscription example contradicts page messaging.
The page emphasizes "Subscriptions stay narrow" and "Let the component ask for less," but line 104 shows store.subscribe(listener) without a selector, which subscribes to all state changes rather than a specific slice. This contradicts the granular subscription messaging throughout the landing page.
Consider showing a more targeted subscription pattern that aligns with the "narrow subscriptions" theme, or clarify that this example demonstrates a different use case.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@src/components/landing/StoreLanding.tsx` around lines 103 - 105, The example
currently shows a broad subscription via store.subscribe(listener) which
contradicts the page's "Subscriptions stay narrow" messaging; update the example
in StoreLanding.tsx to demonstrate a selector-based subscription (i.e.,
subscribe to a specific slice/property rather than the whole store) by replacing
the broad call store.subscribe(listener) with a targeted subscription using a
selector (or add a brief clarifying note if you intend to show a global
subscription use-case), and ensure the example aligns with the landing copy
about narrow subscriptions.
Summary
Validation
pnpm testSummary by CodeRabbit
Documentation
Bug Fixes