Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Console Warning]: Cannot update a component (DashboardLayout) while rendering a different component (WidgetSidebar). #291

Open
rediris opened this issue Feb 13, 2024 · 0 comments
Labels
needs maintainer attention Issue or PR specifically needs the attention of the maintainer.

Comments

@rediris
Copy link

rediris commented Feb 13, 2024

This is visible in console while running the master, quince.2, quince.1 branches.

Warning: Cannot update a component (`DashboardLayout`) while rendering a different component (`WidgetSidebar`). 

To locate the bad setState() call inside `WidgetSidebar`, follow the stack trace as described in https://reactjs.org/link/setstate-in-render
Screenshot 2024-02-13 at 1 35 56 PM
rediris added a commit to gymnasium/frontend-app-learner-dashboard that referenced this issue Feb 13, 2024
See openedx#291

As an aside, it's worth noting these files are practically the same, and with very little effort could be refactored into one in the spirit of DRY-ness.
rediris added a commit to gymnasium/frontend-app-learner-dashboard that referenced this issue Feb 13, 2024
See openedx#291

As an aside, it's worth noting these files are practically the same, and with very little effort could be refactored into one in the spirit of DRY-ness.
@deborahgu deborahgu added the needs maintainer attention Issue or PR specifically needs the attention of the maintainer. label Jul 12, 2024
@justinhynes justinhynes reopened this Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs maintainer attention Issue or PR specifically needs the attention of the maintainer.
Projects
Status: Done
Development

No branches or pull requests

3 participants