openedx / openedx/frontend-app-learner-dashboard
[Console Warning]: Cannot update a component (`DashboardLayout`) while rendering a different component (`WidgetSidebar`).
Open
Nobody has claimed this yet.
needs maintainer attention
- Dominant language
- JavaScript
- Stars
- 14
- Forks
- 208
- Avg merge
- 59m
- Merged PRs (30d)
- 2
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the warning on the master, quince.2, and quince.1 branches, then follow the React stack trace into WidgetSidebar as described in the linked React guidance. Trace the update affecting DashboardLayout and confirm the console warning no longer appears on the affected branches.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100