Next.js: useRouter hook documentation needed

Created on 18 Apr 2019  路  6Comments  路  Source: vercel/next.js

This needs documentation. Also needs an explanation of removing withRouter HOC with this alternative.

Most helpful comment

@avetisk fixing that issue is in-progress: https://github.com/zeit/next.js/pull/7732


Closing this since the hook is now documented.

All 6 comments

It's experimental. Hence no documentation yet.

@timneutkens so... can u show somewhere example how to use ?

@popuguytheparrot Here is an example. But be warned things might break!

@hlebbobulka @timneutkens The documentation is added here: https://github.com/zeit/next.js/pull/7602 so I think this can be closed.

@chibicode would be great to fix this https://github.com/zeit/next.js/issues/6042 or at least leave a comment about it in the documentation.

@avetisk fixing that issue is in-progress: https://github.com/zeit/next.js/pull/7732


Closing this since the hook is now documented.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

knipferrc picture knipferrc  路  3Comments

sospedra picture sospedra  路  3Comments

lixiaoyan picture lixiaoyan  路  3Comments

DvirSh picture DvirSh  路  3Comments

rauchg picture rauchg  路  3Comments