Skip to content

Commit 41eddcf

Browse files
justin808claude
andcommitted
Register ImageExample component in client bundle
The recent refactor to use async: true for non-Redux pages (c0a3b59) caused the image_example page to fail because ImageExample wasn't registered in the client bundle. With async: true, components must be registered upfront in the bundle rather than relying on inline registration. This commit registers ImageExample in client-bundle.js alongside HelloTurboStream, fixing the "Could not find component registered with name ImageExample" error in CI tests. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent c0a3b59 commit 41eddcf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

spec/dummy/client/app/packs/client-bundle.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import '@hotwired/turbo-rails';
77
import ReactOnRails from 'react-on-rails/client';
88

99
import HelloTurboStream from '../startup/HelloTurboStream';
10+
import ImageExample from '../startup/ImageExample';
1011
import SharedReduxStore from '../stores/SharedReduxStore';
1112

1213
ReactOnRails.setOptions({
@@ -16,6 +17,7 @@ ReactOnRails.setOptions({
1617

1718
ReactOnRails.register({
1819
HelloTurboStream,
20+
ImageExample,
1921
});
2022

2123
ReactOnRails.registerStore({

0 commit comments

Comments
 (0)