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

Cannot update a component (AppContextProvider) while rendering a different component (LanguageSelector) #369

Closed
4 tasks done
SavageCore opened this issue Jun 24, 2023 · 0 comments · Fixed by #370
Closed
4 tasks done
Assignees
Labels
bug Something isn't working Web Config Changes to the WebConfig application

Comments

@SavageCore
Copy link
Member

Prerequisites

Please check the following before posting an issue / bug report.

  • I am running the latest version of the firmware found HERE
  • I have checked the documentation HERE and found no answer
  • I checked to make sure that this issue has not already been filed HERE
  • I am reporting the issue to the correct repository

Context

Please provide all relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

  • Firmware Version:
  • Name of device:
  • Link to where you purchased the device:
  • Is this a custom build?:
  • Operating System:
  • Browser:

Expected Behavior

No error in console

Current Behavior

The following error is shown in console:

Cannot update a component (`AppContextProvider`) while rendering a different component (`LanguageSelector`). To locate the bad setState() call inside `LanguageSelector`, follow the stack trace as described in https://reactjs.org/link/setstate-in-render

Steps to Reproduce

Please provide detailed steps for reproducing the issue.

  1. Open the web app

Screenshots & Files

@SavageCore SavageCore self-assigned this Jun 24, 2023
SavageCore added a commit to SavageCore/GP2040-CE that referenced this issue Jun 24, 2023
@SavageCore SavageCore linked a pull request Jun 24, 2023 that will close this issue
@SavageCore SavageCore added bug Something isn't working Web Config Changes to the WebConfig application labels Jun 24, 2023
arntsonl pushed a commit that referenced this issue Jun 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Web Config Changes to the WebConfig application
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant