Replies: 1 comment
-
I think I've got it figured out now. There are two main points:
|
Beta Was this translation helpful? Give feedback.
-
I think I've got it figured out now. There are two main points:
|
Beta Was this translation helpful? Give feedback.
-
The Setup
I have components that combine Alpine.js for interactivity and HTMX for dynamic loading. These components contain both markup and their Alpine.js initialization code with proper CSP nonces.
The Problem
Example of what works on initial load but fails with HTMX:
Current Workaround
I had to split the components:
This works but breaks component encapsulation - users need to remember to initialize the script part separately.
Questions
Would love to hear your thoughts and experiences!
Beta Was this translation helpful? Give feedback.
All reactions