Skip to content
This repository was archived by the owner on Aug 16, 2026. It is now read-only.
This repository was archived by the owner on Aug 16, 2026. It is now read-only.

Communities page updates router state while rendering #78

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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