Skip to content

Commit

Permalink
fix reproduction in story
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Jun 19, 2021
1 parent 5018b72 commit 6043534
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/storybook/src/stories/grid-rows.stories.tsx
Expand Up @@ -920,9 +920,7 @@ export function DeferRendering() {
const [deferColumns] = React.useState([{ field: 'id', headerName: 'Id', width: 100 }]);

React.useEffect(() => {
setTimeout(() => setRows(() => []), 0);
setTimeout(() => setRows(() => []), 0);
setTimeout(() => setRows(() => [{ id: '1' }, { id: '2' }]), 1);
setTimeout(() => setRows(() => [{ id: '1' }, { id: '2' }]), 0);
}, []);

return <XGrid autoHeight columns={deferColumns} rows={deferRows} />;
Expand Down

0 comments on commit 6043534

Please sign in to comment.