Skip to content

Communities page updates router state while rendering #78

@joeltio

Description

@joeltio
error message of set state while rendering

The page.tsx for /communities may change the router state while it is still rendering. This is because the component may call router.replace before the component has finished its render.

This logic should be separated to a useEffect. To keep things clean, the logic should probably be in a custom hook.

Metadata

Metadata

Assignees

No one assigned

    Labels

    repo/websiteThis is website issuetype/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions