File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 22
33## master
44
5+ * Only compile components at application initialization if eager loading is enabled.
6+
7+ * Joel Hawksley*
8+
59## 2.20.0
610
711* Don't add ` /test/components/previews ` to preview_paths if directory doesn't exist.
Original file line number Diff line number Diff line change 8686PATH
8787 remote: .
8888 specs:
89- view_component (2.19.1 )
89+ view_component (2.20.0 )
9090 activesupport (>= 5.0.0 , < 7.0 )
9191
9292GEM
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ class Engine < Rails::Engine # :nodoc:
4444
4545 initializer "view_component.eager_load_actions" do
4646 ActiveSupport . on_load ( :after_initialize ) do
47- ViewComponent ::Base . descendants . each ( &:compile )
47+ ViewComponent ::Base . descendants . each ( &:compile ) if Rails . application . config . eager_load
4848 end
4949 end
5050
You can’t perform that action at this time.
0 commit comments