Hello!
In react-router-dom v6 the recommended way of creating the routes is by using createbrowserrouter() instead of <BrowserRouter></BrowserRouter> components. According to the documentation:
This is the recommended router for all React Router web projects. It uses the DOM History API to update the URL and manage the history stack.
It also enables the v6.4 data APIs like loaders, actions, fetchers and more
Unfortunately the BrowserRouter does not support all the features that are available and needs manual rewriting in our project. It would be awesome if you could update the router implementation.
Thanks and best wishes,
Tamás
Hi Tamas,
Thank you for your suggestion, we appreciate it a lot.
I added a task to our system, we will check createbrowserrouter()
approach in more detail and consider using it in the next Metronic releases.
Regards,
Lauris Stepanovs,
Keenthemes Support Team
Hi Lauris,
That is awesome.
Here is some reasoning from the docs why the Data API router is the recommended way.
Looking forward for this!
Best wishes,
Tamas
Hi Tamas,
I attached your comment to the task, so our developer will check it when they will do research regarding Data API.
Thank you again.
Regards,
Lauris Stepanovs,
Keenthemes Support Team