Open ggrillone opened 6 years ago
Here is my use case:
I dispatch a push action dispatch(push({ pathname: '/my-route', query: { status: ['online'] }})
dispatch(push({ pathname: '/my-route', query: { status: ['online'] }})
When adding logging around routing, when the ROUTER_PUSH payload looks like:
ROUTER_PUSH
{ ... query: { status: ['online'] } }
But then when the ROUTER_LOCATION_CHANGED action is dispatched, the query value changes to:
ROUTER_LOCATION_CHANGED
query
{ ... query: { status: 'online' } }
so essentially something is turning that from an array with a single string value to just a string
Here is my use case:
I dispatch a push action
dispatch(push({ pathname: '/my-route', query: { status: ['online'] }})
When adding logging around routing, when the
ROUTER_PUSH
payload looks like:But then when the
ROUTER_LOCATION_CHANGED
action is dispatched, thequery
value changes to:so essentially something is turning that from an array with a single string value to just a string