Skip to content

Commit e9903fc

Browse files
committed
docs(settings): document data warming pattern
1 parent cacce07 commit e9903fc

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.claude/rules/sim-settings-pages.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,10 @@ Adding a new settings page:
104104
2. Render the component inside the shell's `effectiveSection` switch in
105105
`settings/[section]/settings.tsx`.
106106
3. Build the component body inside `<SettingsPanel>` — no shell, no title block.
107+
4. When the initial body depends on server data, export shared React Query options for both the
108+
mounted consumer and the settings intent warmer. Warm only authorized destinations, preserve
109+
the current section during the transition, and follow the failure-recovery rules in
110+
`sim-react-performance.md`; never render temporary default data that will be replaced after load.
107111

108112
## Text-scale tokens (no literal pixel sizes)
109113

0 commit comments

Comments
 (0)