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

[LiveComponent] Multiple url query params in one LiveProp #2142

Open
Nayte91 opened this issue Sep 9, 2024 · 0 comments
Open

[LiveComponent] Multiple url query params in one LiveProp #2142

Nayte91 opened this issue Sep 9, 2024 · 0 comments

Comments

@Nayte91
Copy link

Nayte91 commented Sep 9, 2024

Hello,

In a symfony controller, you can welcome several query params in a single DTO with the MapQueryString attribute.

In a live component, currently, when you have multiple query parameters to welcome, you must declare them one by one; then eventually in a method regroup them into an array or a DTO to do some logic.

I wonder if we can, also in live components, group query params into one property?

Context: you got a FacetedSearchMenu component, with multiple parameters that you want to reflect on url, and you group those in a FacetFilter DTO to pass to repository or whatever.

If I may help in any way,
Best regards,

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

No branches or pull requests

2 participants