From dca4dda2285ab37a2419810eed8667e0e042658a Mon Sep 17 00:00:00 2001 From: Paul Chavard Date: Fri, 6 May 2022 12:29:41 +0200 Subject: [PATCH] chore(view_component): enable global_output_buffer --- config/application.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/application.rb b/config/application.rb index aaf6aa527..f73c01df2 100644 --- a/config/application.rb +++ b/config/application.rb @@ -87,5 +87,8 @@ module TPS config.view_component.show_previews_source = true config.view_component.default_preview_layout = 'component_preview' config.view_component.preview_paths << "#{Rails.root}/spec/components/previews" + + # see: https://viewcomponent.org/known_issues.html + config.view_component.use_global_output_buffer = true end end