Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comma separated, multiple path-deps? #2545

Open
askonomm opened this issue May 13, 2024 · 0 comments
Open

Comma separated, multiple path-deps? #2545

askonomm opened this issue May 13, 2024 · 0 comments

Comments

@askonomm
Copy link

askonomm commented May 13, 2024

I had a use case where I wanted one thing to depend on multiple, different paths instead of just one path and the current path-deps ext does not support that, so I went ahead and changed path-deps.js to support that.

An example use case:

<div hx-get="/api/data" 
     hx-trigger="load, path-deps"
     path-deps="/api/path1,/api/path2,/api/path3"></div>

Is there any wider interest for such a thing? If yes, I would gladly open a PR about that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant