You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When clicking the "View Data Table" button in a React or Next.js application while using Strict Mode, the dataset table is not visible. This issue occurs because this.setState is set to an empty function in the componentDidUnmount lifecycle method.
In Strict Mode, componentDidUnmount is called at the start (detect potential issues), which causes this.setState to be set as an empty function prematurely. As a result, any subsequent calls to setState do not change the state of the component.
The issue has been fixed by introducing a hasMounted flag to ensure that setState is only called when the component is mounted.
A similar issue occurs when the data table is visible, and the three vertical dots near each column are clicked. In Strict Mode, the dropdown menu does not appear.
To Reproduce
Steps to reproduce the behavior:
Go to examples/demo-app/src/main.js or create a new React/Next.js application.
Wrap the component in React.StrictMode.
Open the application in the browser, upload a dataset, and click the "View Data Table" button.
Describe the bug
When clicking the "View Data Table" button in a React or Next.js application while using Strict Mode, the dataset table is not visible. This issue occurs because this.setState is set to an empty function in the componentDidUnmount lifecycle method.
In Strict Mode, componentDidUnmount is called at the start (detect potential issues), which causes this.setState to be set as an empty function prematurely. As a result, any subsequent calls to setState do not change the state of the component.
The issue has been fixed by introducing a hasMounted flag to ensure that setState is only called when the component is mounted.
A similar issue occurs when the data table is visible, and the three vertical dots near each column are clicked. In Strict Mode, the dropdown menu does not appear.
To Reproduce
Steps to reproduce the behavior:
I have raised PR for this issue: #2683
Screenshots
Expected behavior
The dataset table should be visible, and the dropdown near each column name should be functional in Strict Mode.
Desktop :
OS: Ubuntu
Browser: Chrome, firefox
Version: Ubuntu 24.04.1 LTS
The text was updated successfully, but these errors were encountered: