tomkp / react-split-pane

React split-pane component
https://tomkp.github.io/react-split-pane
MIT License
3.2k stars 409 forks source link

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

Open Admin12121 opened 5 months ago

Admin12121 commented 5 months ago

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 commented 3 months ago

Facing same issue

BipanKishore commented 3 months ago

Found solution https://www.npmjs.com/package/resizable-panes-react https://bipankishore.github.io/resizable-panes/?lib=react

huichen9719 commented 3 days ago

Facing same issue