React-navi issue in chrome extension

39 views
Skip to first unread message

Uday prasad

unread,
Oct 17, 2022, 6:12:15 AM10/17/22
to Chromium Extensions
I am using "react-navi" and "navi" packages for navigation through components/url's in my project. But unfortunately it isn't supported in extension. Mainly "View" in react-navi and "mount" in navi.

Is there any alternative for chrome extension which does the same functionality as above mentioned ''View" and "mount"?

Also, I have little knowledge on using "goto" in "react-chrome-extension-router" package for navigation.

Any ideas / knowledge would be helpful.

wOxxOm

unread,
Oct 17, 2022, 8:37:49 AM10/17/22
to Chromium Extensions, Uday prasad
The usual problem with web routers is that they assume a web server, but there's no web server for extension files, they're just files. The usual solution is to switch the router into hash mode or specify the page name instead of `/`.
Reply all
Reply to author
Forward
0 new messages