How to keep router updated with history?

Hi,

I am using react-router-dom v6. I am creating a custom plugin in react, and is trying to implement routing (navigation between ui pages).

As per this documentation (Routing, Navigation and URL | Kibana Guide [8.8] | Elastic), we have to keep the router updated with history.

As per this document, I have to pass history from core to Router (kibana/application.tsx at 8.8 · elastic/kibana · GitHub). But, for recent versions of react-router-dom (I am using v6), Router doesn't have history prop.

Thanks

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.