rsnext/errors/no-router-instance.md
Tim Neutkens 3e51ddb8af
Move syntax formatting to prettier (#7454)
* Run prettier over packages/**/*.js

* Run prettier over packages/**/*.ts

* Run prettier over examples

* Remove tslint

* Run prettier over examples

* Run prettier over all markdown files

* Run prettier over json files
2019-05-29 13:57:26 +02:00

330 B

No Router Instance

Why This Error Occurred

During SSR you might have tried to access a router method push, replace, back, which is not supported.

Possible Ways to Fix It

Move any calls to router methods to componentDidMount or add a check such as typeof window !== 'undefined' before calling the methods