Commit 2aa269a
committed
Add generated_component_packs_loading_strategy to base initializer template
Per feedback, this setting should be in the base template (not Pro-only):
- Added to react_on_rails.rb.tt template with clear documentation
- Default is :defer (recommended for most apps)
- Documents that :async requires React on Rails Pro for better performance
- Explains the differences between :defer, :sync, and :async
- Prevents component registration race conditions with :defer default
This ensures new Rails apps get the configuration with sensible defaults.1 parent 4a8da30 commit 2aa269a
File tree
1 file changed
+14
-0
lines changed- lib/generators/react_on_rails/templates/base/base/config/initializers
1 file changed
+14
-0
lines changedLines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
67 | 81 | | |
0 commit comments