You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Fix performance API compatibility with polyfill
- Add missing clientStartup mock in tests
- Replace globalThis with window in test file
- Use async import instead of require
- Add language hints to markdown code blocks
- Ensure files end with newline character
@@ -77,12 +85,14 @@ This implementation provides the first step in the React on Rails incremental im
77
85
### Examples of Improvements
78
86
79
87
#### Before:
80
-
```
88
+
89
+
```text
81
90
Component HelloWorld not found
82
91
```
83
92
84
93
#### After (Updated with Auto-Bundling Priority):
85
-
```
94
+
95
+
```text
86
96
❌ React on Rails Error: Component 'HelloWorld' Not Registered
87
97
88
98
Component 'HelloWorld' was not found in the component registry.
@@ -120,23 +130,27 @@ The improved error messages now **prioritize React on Rails' auto-bundling featu
120
130
## Usage
121
131
122
132
### Enable Debug Mode (JavaScript)
133
+
123
134
```javascript
124
135
// In your entry file
125
136
ReactOnRails.setOptions({
126
137
debugMode:true,
127
-
logComponentRegistration:true
138
+
logComponentRegistration:true,
128
139
});
129
140
```
130
141
131
142
### View Enhanced Errors (Rails)
143
+
132
144
Errors are automatically enhanced - no configuration needed. For full details:
145
+
133
146
```ruby
134
147
ENV["FULL_TEXT_ERRORS"] ="true"
135
148
```
136
149
137
150
## Next Steps
138
151
139
152
This is Phase 1 of the incremental improvements. Next phases include:
153
+
140
154
- Enhanced Doctor Command (Phase 1.2)
141
155
- Modern Generator Templates (Phase 2.1)
142
156
- Rspack Migration Assistant (Phase 3.1)
@@ -145,10 +159,11 @@ This is Phase 1 of the incremental improvements. Next phases include:
145
159
## Testing
146
160
147
161
Due to Ruby version constraints on the system (Ruby 2.6, project requires 3.0+), full testing wasn't completed, but:
162
+
148
163
- JavaScript builds successfully
149
164
- Code structure follows existing patterns
150
165
- Tests are provided for validation
151
166
152
167
## Impact
153
168
154
-
This change has **High Impact** with **Low Effort** (2-3 days), making it an ideal first improvement. It immediately improves the developer experience without requiring any migration or configuration changes.
169
+
This change has **High Impact** with **Low Effort** (2-3 days), making it an ideal first improvement. It immediately improves the developer experience without requiring any migration or configuration changes.
0 commit comments