You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've tried :
import {withRouter} from'next/router'
import Link from'next/link'
and all above don't work on ios10.x.x
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
create-next-app next-demo
cd next-demo and create a new test page file in pages folder 'test.js',and then type some code in this file
import React from 'react'
const Test = (props) => (
<div>
test
</div>
)
export default Test
and add router to home page:
import {useRouter}from 'next/router'
const router=useRouter()
the whole test content in home.js is:
import React from 'react'
import {useRouter}from 'next/router'
const Home = () => {
const router=useRouter()
const handleClick=()=>{
console.log('click')
router.push('/test')}
return (
<div>
<h1 className="title" onClick={handleClick}>welcome to Next!</h1>
</div>
)}
export default Home
start developing,run yarn dev,you will find that all above works well ,you click the h1 tag and page changed, but this will not work on ios 10.x.x
Expected behavior
next/router support ios10.x.x
Screenshots
If applicable, add screenshots to help explain your problem.
System information
OS:ios10.0.1 and ios10.2 and ios10.3 are tested,not work
Browser (if applies) [e.g. chrome, safari]
Version of Next.js:9.1.7 &9.0.0 &9.1.7-canary.14
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
WEN-JY
changed the title
next/router & next/link don't work on iphones with ios version 10.x.x after build
next/router & next/link don't work on iphones with ios version 10.x.x
Jan 4, 2020
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
vercel
locked as resolved and limited conversation to collaborators
Jan 30, 2022
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Bug report
Describe the bug
my nextjs version is 9.1.7-canary.14,but it's still not work when I downgrade to 9.0.0
here the code is:
I've tried :
import {withRouter} from'next/router'
import Link from'next/link'
and all above don't work on ios10.x.x
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
import {useRouter}from 'next/router'
const router=useRouter()
the whole test content in home.js is:
start developing,run yarn dev,you will find that all above works well ,you click the h1 tag and page changed, but this will not work on ios 10.x.x
Expected behavior
next/router support ios10.x.x
Screenshots
If applicable, add screenshots to help explain your problem.
System information
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: