Skip to content

Commit

Permalink
Fix slot duplicating issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredcwhite committed Apr 16, 2024
1 parent 3118413 commit 329519a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bridgetown-core/lib/bridgetown-core/resource/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ def data=(new_data)
Signalize.batch do
@content_signal.value += 1
@data.value = @data.value.merge(new_data)
slots.clear
end
@data.peek
end
Expand Down Expand Up @@ -355,6 +354,7 @@ def unmark_for_fast_refresh!
def prepare_for_fast_refresh! # rubocop:todo Metrics
dispose_of_transform_effect
FileUtils.rm(destination.output_path, force: true) if requires_destination?
slots.clear
past_values = @data.peek.select do |key|
key == "categories" || key == "tags" || site.taxonomy_types.keys.any?(key)
end
Expand Down

0 comments on commit 329519a

Please sign in to comment.