We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07eec91 commit 260cb28Copy full SHA for 260cb28
lib/react/rails/railtie.rb
@@ -28,7 +28,7 @@ class Railtie < ::Rails::Railtie
28
end
29
30
31
- config.after_initialize do |app|
+ config.before_initialize do |app|
32
# We want to include different files in dev/prod. The development builds
33
# contain console logging for invariants and logging to help catch
34
# common mistakes. These are all stripped out in the production build.
@@ -38,7 +38,9 @@ class Railtie < ::Rails::Railtie
38
39
app.assets.append_path(root_path.join('lib/assets/react-source/').join(directory).to_s)
40
app.assets.append_path(root_path.join('lib/assets/javascripts/').to_s)
41
+ end
42
43
+ config.after_initialize do |app|
44
# Server Rendering
45
# Concat component_filenames together for server rendering
46
app.config.react.components_js = lambda {
0 commit comments