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

Legacy context API has been detected within a strict-mode tree. #841

Open
Admin12121 opened this issue Apr 2, 2024 · 2 comments
Open

Legacy context API has been detected within a strict-mode tree. #841

Admin12121 opened this issue Apr 2, 2024 · 2 comments

Comments

@Admin12121
Copy link

Admin12121 commented Apr 2, 2024

Bug Description

A warning message indicating the use of the legacy context API has been detected within a strict-mode tree in our application. The warning message states:

Screenshot 2024-04-02 192043

Steps to Reproduce

  1. Run the application in a development environment.

Expected Behavior

The application should not display warnings related to the use of the legacy context API.

Actual Behavior

The warning message mentioned above is displayed in the console.

Possible Solution

Update the affected components (Styled(styled.div), glamorous(div), styled.div) to use the new context API instead of the deprecated legacy API. Refer to the documentation or migration guides of the relevant libraries (e.g., Styled Components, Glamorous) for guidance on updating to the latest context API.

@vimalsharma124
Copy link

Facing same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants