You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Query params containing arrays are turned into strings when route.refresh() is called and another query param is changed at the same time.
I put here a link to a twiddle using ember2.9.0 and an animated gif to see the testing process.
The first button sets the filters param to an initial value of ['filter1', 'filter2'] and the value is well represented in the URL's query string.
The second button calls an action that just executes route.refresh() and the model()method of the route is receiving an array with ['filter1', 'filter2'] in the filtersparam.
The third button shows the issue by calling an action that first changes a different query param (otherParam) and after that, executes route.refresh() and the model()method of the route is receiving a string instead of an array with the value of filters.
Query params containing arrays are turned into strings when
route.refresh()
is called and another query param is changed at the same time.I put here a link to a twiddle using ember2.9.0 and an animated gif to see the testing process.
The first button sets the
filters
param to an initial value of['filter1', 'filter2']
and the value is well represented in the URL's query string.The second button calls an action that just executes
route.refresh()
and themodel()
method of the route is receiving an array with['filter1', 'filter2']
in thefilters
param.The third button shows the issue by calling an action that first changes a different query param (
otherParam
) and after that, executesroute.refresh()
and themodel()
method of the route is receiving astring
instead of anarray
with the value of filters.https://ember-twiddle.com/0c3833a0ae05e1350f4e0e8cbd4f125c?openFiles=controllers.application.js%2C
The text was updated successfully, but these errors were encountered: