openedx / openedx/frontend-app-learner-dashboard

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

Open
#291 0 comments 0 reactions 0 assignees View on GitHub

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
Screenshot 2024-02-13 at 1 35 56 PM

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.