Reach / General

navigate isn't working as intended with LocationProvider

navigate isn't working as intended with LocationProvider

Reach/General · January 31, 2019 at 8:53pm

navigate isn't working as intended with LocationProvider

Reach / General · January 31, 2019 at 8:53pm

We have an issue going for this (https://github.com/reach/router/issues/225#issuecomment-459421340) and I'm hoping that perhaps someone here may be able to help and she'd some more light on a solution or at least another workaround so I don't have to be tempted by react-router anymore.

When using LocationProvider with an in-memory history with Electron, the navigate function isn't working properly. I've found that the one coming from a Route component's props does work, but the imported one from the library does not. I have a use case where the component does not have access to Route props and am trying to figure this out. I would love to solve this and contribute a fix as well if we could.

emoji
No messages have been sent in this conversation yet—why don’t you kick things off below?