I’m more or less new to this stuff, I’m working on my App for a school project about 2 months ago. Now I’m having a issue with params in URLs, I’ll explain better possible.
I have the issue following links using or using onClick={ () => {history.push (’/groups/xxxx’); }, the issue is that I can’t read parameter with useParams or with RouteComponentProps (match.params.groupid).
The problem occurs ONLY on real devices (both Android and iOS), in web browser on my MAC it all works well. In the real devices, If I debug it and reload the page it works, but when I follow the link I got blank page.
Here is the code when I’m trying to read the param:
hi, this is a bit off-topic, sorry. I have lots of problems at routing because of this restriction:
Since IonRouterOutlet takes over the job in determining which routes get rendered, using a Switch from React Router has no effect when used inside of an IonRouterOutlet . Switches still function as expected when used outside an IonRouterOutlet .
…but I see that you are successfully using it. so, my question is: is that info I just passed here deprecated and I can finally use Switches in IonRouterOutleds freely and feardlessly?
I have the same issue in my project. I got blank page only in emulator and real device. But it has been years since the conversation here, <Switch> does not seems to be compatible with <IonRouterOutlet>in recent version. What would be the new routing solution instead? @aaronksaunders Thank you in advance.