javascript - The history browser using react-router is stuck, please solve it
PHP中文网
PHP中文网 2017-05-19 10:22:18
0
1
541

The history module used

According to documentation

import createHistory from 'history/createBrowserHistory'

const history = createHistory()

const location = history.location


history.push('/home', { some: 'state' })

Then the whole computer’s CPU will spin very fast, and the browser will freeze. Please find a solution

PHP中文网
PHP中文网

认证0级讲师

reply all(1)
伊谢尔伦

Check if there is an infinite loop

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template