Commit 5c18ac9
Make generated_component_packs_loading_strategy default based on Pro license
- Pro users (Shakapacker >= 8.2.0): defaults to :async for optimal performance
- Non-Pro users (Shakapacker >= 8.2.0): defaults to :defer for compatibility
- Older Shakapacker versions: continues to default to :sync (unchanged)
This aligns with the immediate_hydration behavior where Pro features
are automatically enabled based on license detection, providing the
best default experience for each user type.
Updated tests to verify Pro/non-Pro default behaviors separately while
maintaining tests for explicit value overrides.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 0d8552b commit 5c18ac9
File tree
3 files changed
+24
-4
lines changed- lib/react_on_rails
- spec/react_on_rails
3 files changed
+24
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
| 57 | + | |
56 | 58 | | |
57 | 59 | | |
58 | 60 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
222 | | - | |
| 222 | + | |
| 223 | + | |
223 | 224 | | |
224 | 225 | | |
225 | 226 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
287 | | - | |
288 | | - | |
289 | | - | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
290 | 307 | | |
291 | 308 | | |
292 | 309 | | |
| |||
0 commit comments