Skip to content

client.js:1 Warning: Cannot update a component (Home) while rendering a different component (App). To locate the bad setState() call inside App #545

@haar1shKhan

Description

@haar1shKhan

Update issue when changing routes

.
i have two routes in the my program which uses SSR and inside SSR funtion of first route (Home) dispatches a asyncthunk function which fetches a details about api and in second route (projects) dispatches a async function whichs fetches a detail about all the projects i have done. the details in each pages are hydrated but problem arises when i switch from one route to another using link component.
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions