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

BUG: query string is wiped out when navigate() is called with path only #144

Open
MaxMotovilov opened this issue Oct 30, 2020 · 0 comments

Comments

@MaxMotovilov
Copy link

A call to navigate(path) always wipes out the query string. It happens because

window.history[`${replace ? 'replace' : 'push'}State`](null, null, finalURL);
uses only the path and the code in
setQueryParams(queryParams, replaceQueryParams);
does not execute when queryParams are null.

Probably answers the question in #99

Current workaround is to always pass in {} for queryParams as well as false for replaceQueryParams.

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