Skip to content

Commit

Permalink
fix logic bug with nested components
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredcwhite committed Apr 10, 2024
1 parent 45f4513 commit 4007105
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bridgetown-core/lib/bridgetown-core/component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4007105

Please sign in to comment.