-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
queryParams array attribute becomes a string if other attribute changes before model is resolved #15611
Comments
I can confirm above issue (with Ember 3.17, Firefox 79.0). Steps to reproduce:
From this point on, you should see the array query param getting escaped recursively |
Can you please check if #19236 fixes the issue? |
@rreckonerr, thank you for your contribution! Have you tried modifying twidle.json? Because constructing the dummy application locally in the nearest future is too much for me. |
Ya still seems to be an issue with 3.22.1. https://ember-twiddle.com/2d80d71daa9a9a99676aef471cb55b90?openFiles=templates.application.hbs%2C |
@rwjblue I've reproduced your twiddle in https://github.com/sly7-7/ember-repro-15611 (ember 3.25.1), and it looks like this is fixed. |
Thanks @sly7-7! |
See this twiddle please.
There are two queryParams:
categories
arraysearchQuery
stringThe model resolves the current time with a 1-second timeout.
Steps:
categories
.categories
is still an array in the console.searchQuery
is modified before the transition completes, thecategories
becomes a string. From this point, it becomes even worse with every modification because it escapes escape symbols on every iteration.The text was updated successfully, but these errors were encountered: