-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Conversation
There was a problem hiding this 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.
There was a problem hiding this 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> |
There was a problem hiding this comment.
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 😆
There was a problem hiding this comment.
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
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:
Fix #849
Fix codesandbox https://codesandbox.io/s/create-react-app-forked-kcoup?file=/src/App.js