From 40071051a3ae4a597abf24ffe824de8bc83e250e Mon Sep 17 00:00:00 2001 From: Jared White Date: Tue, 9 Apr 2024 22:49:56 -0700 Subject: [PATCH] fix logic bug with nested components --- bridgetown-core/lib/bridgetown-core/component.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bridgetown-core/lib/bridgetown-core/component.rb b/bridgetown-core/lib/bridgetown-core/component.rb index 16f13e08d..eb65f9e0a 100644 --- a/bridgetown-core/lib/bridgetown-core/component.rb +++ b/bridgetown-core/lib/bridgetown-core/component.rb @@ -181,8 +181,8 @@ def render_in(view_context, &block) @_content_block = block if render? - if view_context.site.config.fast_refresh - signal = view_context.site.tmp_cache["comp-signal:#{self.class.source_location}"] ||= + if helpers.site.config.fast_refresh + signal = helpers.site.tmp_cache["comp-signal:#{self.class.source_location}"] ||= Signalize.signal(1) # subscribe so resources are attached to this component within effect signal.value