Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ nav_order: 6

## main

* Fix the template annotations integration test failing when it ran after the coverage compile tests, which left components compiled without the annotation in the test cache.

*Anthony Veaudry*

## 4.18.0

* Enable caching support for all components by default, and rename `ViewComponent::ExperimentallyCacheable` to `ViewComponent::Cacheable`. Including the module is no longer necessary. Breaking: remove existing `include ViewComponent::ExperimentallyCacheable` lines. Caching is no longer experimental.
Expand Down
3 changes: 3 additions & 0 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@ def with_new_cache
yield
ensure
ActionView::Base.cache_template_loading = old_cache_template_loading
# Components compiled in the block were compiled under its settings, such as
# coverage or annotations, so make them compile again the next time they render.
old_cache.subtract(ViewComponent::CompileCache.cache)
ViewComponent::CompileCache.cache = old_cache
end

Expand Down
Loading