-
-
Notifications
You must be signed in to change notification settings - Fork 394
Description
Summary
Error during the ux:icon:warm-cache process when encountering live_action('close:prevent') in a UX Live Component. The issue occurs in environments where access to Iconify is blocked or misconfigured, such as in a CI pipeline or local development setup.
Description
When using the live_action function in a UX Live Component, such as:
<a href="#" {{ live_action('close:prevent') }} >Close</a>The warmup process attempts to resolve an icon named prevent from the close collection. This causes a failure because close:prevent is not an icon definition but a Live Action attribute.
The issue was initially discovered in a CI pipeline behind a proxy that blocks access to Iconify, but it can also be reproduced in a local development environment with restricted access to the Iconify endpoint.
Steps to Reproduce
- Add a
live_action('close:prevent')call in a UX Live Component. - Test in an environment with one of the following conditions:
- A CI pipeline behind a proxy that blocks access to Iconify.
- A local development environment where access to the Iconify endpoint is restricted or misconfigured.
- Run the warmup process.
- Observe the error.
Expected Behavior
The warmup process should ignore or properly handle live_action calls, ensuring they are not mistakenly interpreted as icon definitions. Additionally, it should handle restricted or misconfigured network environments gracefully.
Actual Behavior
The process attempts to resolve prevent as an icon from the close collection. In environments where Iconify is inaccessible or misconfigured, this results in a failure during warmup.