Commit d261c3f
Apply accepted review polish: functional setState, safer probe script, let-bound probe, drop trace
Four style items accepted from the PR #3953 second-round triage:
- Starter counter (dummy JSX + docs snippet) uses the functional update
form setCount((c) => c + 1).
- The console-log probe message is passed to execute_script as a
Capybara argument instead of interpolating Ruby into the JS string.
- The probe message local is promoted to let(:log_probe_message).
- The starter view drops trace: true (raise_on_prerender_error stays).
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent 8f39410 commit d261c3f
4 files changed
Lines changed: 5 additions & 5 deletions
File tree
- docs/oss/building-features
- react_on_rails_pro/spec/dummy
- app/views/tanstack_starter
- client/app/ror-auto-load-components
- spec/system
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
| 103 | + | |
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
| 120 | + | |
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| |||
0 commit comments