根据文档
import createHistory from 'history/createBrowserHistory'
const history = createHistory()
const location = history.location
history.push('/home', { some: 'state' })
然后整个电脑 cpu 就飞快的转,浏览器也就卡死了,求解决方法
根据文档
import createHistory from 'history/createBrowserHistory'
const history = createHistory()
const location = history.location
history.push('/home', { some: 'state' })
然后整个电脑 cpu 就飞快的转,浏览器也就卡死了,求解决方法
检查下是不是有死循环