Elements with an [up-hungry]
attribute are updated whenever the server sends a matching element, even if the element isn't targeted explicitly.
By default hungry elements only update from responses that target their own layer. Unpoly 3.0 introduced a modifying attribute [up-if-layer="any"]
that tells the element to also update from responses from other layers. Unpoly 3.3.0 addresses two edge cases:
[up-if-layer="any"]
are also updated from responses that open an overlay.[up-if-layer="any"]
are also updated from responses that cause an overlay to close.
If you're upgrading from an older Unpoly version you should load unpoly-migrate.js
to polyfill deprecated APIs.
Changes handled by unpoly-migrate.js
are not considered breaking changes.
See our upgrading guide for details.