Skip to content

Latest commit

 

History

History
9 lines (5 loc) · 330 Bytes

no-router-instance.md

File metadata and controls

9 lines (5 loc) · 330 Bytes

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