Replies: 4 comments 4 replies
-
|
did you find the best way to test the query params? |
Beta Was this translation helpful? Give feedback.
-
|
Hi, we have a similar usecase where we test custom SearchParams handling with the help from the HistoryRouter. therefore an export of the History type (which in v6 was compatible with the one from the history package) and createHistoryRouter would be extremely helpful. |
Beta Was this translation helpful? Give feedback.
-
Couldn't you achieve this behavior with a small wrapper around |
Beta Was this translation helpful? Give feedback.
-
|
I'm not quite sure why we only exported the one history API as If you have use-cases you cannot solve in v7 with the new APIs please feel free to reply here and we can try to figure out a path forward for your app. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
It would be great if v7 continued to export the
createMemoryHistoryfunction, similar toUNSAFE_createBrowserHistory. We currently require this in order to test our custom method for preserving search params, regardless of the interaction method used (i.e.<Link />ornavigate). I'm happy to replace our approach with acreateBrowserRouter-native one but I can't seem to find an extension point that gives this same reliable behavior? AFAIK, any alternative would involve manually specifying the destination search string.Beta Was this translation helpful? Give feedback.
All reactions