Commit d2042d5
Fix async script loading for auto-generated component packs
The recent refactor to use async: true for non-Redux pages (c0a3b59) caused
the image_example page to fail because of a timing issue between the main
bundle and auto-generated component packs.
The dummy app uses auto_load_bundle with components_subdirectory = "startup",
which auto-generates packs for components like ImageExample. When the main
client-bundle loads with async: true but auto-generated packs load with
defer: true (the previous default), the defer scripts execute after async
scripts, causing "Component already registered" errors or missing components.
This commit changes generated_component_packs_loading_strategy from :defer
to :async to match the main bundle loading strategy, ensuring proper
execution order for non-Redux pages.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent c0a3b59 commit d2042d5
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
0 commit comments