Skip to content
This repository has been archived by the owner on Dec 15, 2018. It is now read-only.

query value in payload is different in ROUTER_PUSH vs. ROUTER_LOCATION_CHANGED #254

Open
ggrillone opened this issue Jan 4, 2018 · 0 comments

Comments

@ggrillone
Copy link

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:

{
  ...
  query: { status: ['online'] }
}

But then when the ROUTER_LOCATION_CHANGED action is dispatched, the query value changes to:

{
  ...
  query: { status: 'online' }
}

so essentially something is turning that from an array with a single string value to just a string

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

No branches or pull requests

1 participant