18a9c7e371
* Update `packages/` * Update examples * Update tests * Update bench * Update top level files * Fix build * trigger
8 lines
212 B
JavaScript
8 lines
212 B
JavaScript
import { withRouter } from 'next/router'
|
|
|
|
function RouterMethodSSR({ router }) {
|
|
if (typeof window === 'undefined') router.push('/a')
|
|
return <p>Navigating...</p>
|
|
}
|
|
|
|
export default withRouter(RouterMethodSSR)
|