8000 withRouter passes undefined router prop in SSR with decorated pages · Issue #2908 · vercel/next.js · GitHub
[go: up one dir, main page]

Skip to content
withRouter passes undefined router prop in SSR with decorated pages #2908
@jaydenseric

Description

@jaydenseric

The withRouter HOC passes undefined for the router prop in SSR with custom routes. The client render works as expected, causing a React server/client checksum error.

I use next-routes, but others on Slack are having the same issue when using app.render in server.js.

  • I have searched the issues of this repository and believe that this is not a duplicate.

Context

I am attempting to style active links.

Your Environment

Tech Version
next v3.2.1
node v8.4.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0