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

* Update link to GOV.UK Components library in resources list to govuk-components.x-govuk.org

*Peter Yates*

## 4.12.0

* Fix stale render context on reused component instances. A `ViewComponent::Base` instance memoized its controller, helpers, request, view context, lookup context, view flow, and requested format details on first render via `||=`. Rendering the same instance a second time (intentionally or via aliasing) reused that stale context, which could leak data across requests, sessions, or users. `#render_in` now resets these ivars on every call so each render derives its context from the current view.
Expand Down
2 changes: 1 addition & 1 deletion docs/resources.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ _Is this page missing a link? Open a PR!_
## ViewComponent libraries

- [Primer ViewComponents](https://primer.style/view-components/)
- [GOV.UK Rails Components](https://govuk-components.netlify.app/)
- [GOV.UK Rails Components](https://govuk-components.x-govuk.org/)
- [Polaris ViewComponents](https://github.com/baoagency/polaris_view_components)
- [Rails Designer](https://railsdesigner.com/)

Expand Down
Loading