router.push not working on mobile (Works on chrome mobile emulator but not in a real one)
Answered
Asiatic Lion posted this in #help-forum
Asiatic LionOP
{pages !== null && pages.map((page: any) => (
<DropdownItem
key={page.name}
startContent={ <ArrowRight size={24}/> }
onClick={() => router.push(`/services/${page.name}`)}
>
{}
{page.name}
</DropdownItem>
))}The router.push is doing nothing on a real mobile phone (tested multiple mobiles) but working on the chrome emulator
What can i do? what can be the problem?
12 Replies
Asiatic LionOP
BUMP!
Asiatic LionOP
!!
Asiatic LionOP
HEYYY
THIS IS A BUG!!
Please fix it
Do not bump more than once a day.
@joulev Do not bump more than once a day.
Asiatic LionOP
bruh ok just this bug is annoying and idk what to do
American Crow
Give the <Link> component a try?
@American Crow Give the <Link> component a try?
Asiatic LionOP
I added link too yeah
Answer
Asiatic LionOP
Now i have router + Link
Link was not working on PC and router not in phone
Now it works in all lol