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

[DataGrid] Fix strict mode issue with apiRef #933

Merged
merged 14 commits into from
Jan 28, 2021
Merged

Conversation

dtassone
Copy link
Member

@dtassone dtassone commented Jan 26, 2021

I have activated strict mode on these 2 stories. The main issue occurred when passing the apiRef as a prop. It is now fixed
http://localhost:6006/?path=/story/x-grid-tests-state--strict-demo
http://localhost:6006/?path=/story/x-grid-tests-pagination--pagination-api-tests

Todo:

  • Activate Strict mode on all Unit tests
  • Activate Strict mode for all storybook

Fix #849
Fix codesandbox https://codesandbox.io/s/create-react-app-forked-kcoup?file=/src/App.js

@dtassone dtassone marked this pull request as draft January 26, 2021 20:06
@dtassone dtassone closed this Jan 27, 2021
@dtassone dtassone reopened this Jan 27, 2021
@dtassone dtassone marked this pull request as ready for review January 27, 2021 18:10
@dtassone dtassone changed the title [DataGrid] investigating strict mode [DataGrid] Fix strict mode issue with apiRef Jan 27, 2021
Copy link
Member

@oliviertassinari oliviertassinari left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it's work 👍 , the tests will tell us.

Copy link
Member

@oliviertassinari oliviertassinari left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great


export const decorators = [
(Story) => (
<React.StrictMode>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So not using storybookjs/storybook#12734 😆

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope! I tried but it didn't seem to work

@oliviertassinari oliviertassinari added bug 🐛 Something doesn't work component: data grid This is the name of the generic UI component, not the React module! labels Jan 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work component: data grid This is the name of the generic UI component, not the React module!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[XGrid] ViewPort doesn't update on table state change when using the useApiRef in React.StrictMode
3 participants