Repository navigation
Replies: 1 comment
|
I think I've got it figured out now. There are two main points:
|
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
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!
All reactions