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

[draft] Scrolling improvements exploration #9171

Closed
wants to merge 16 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions docs/data/data-grid/performance/Example.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { ExampleConcept } from '@mui/x-data-grid-premium';

export default function Example() {
return <ExampleConcept />;
}
5 changes: 5 additions & 0 deletions docs/data/data-grid/performance/Example.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { ExampleConcept } from '@mui/x-data-grid-premium'

export default function Example() {
return <ExampleConcept />
}
1 change: 1 addition & 0 deletions docs/data/data-grid/performance/Example.tsx.preview
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<ExampleConcept />
3 changes: 3 additions & 0 deletions docs/data/data-grid/performance/performance.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

<p class="description">Improve the performance of the DataGrid using the recommendations from this guide.</p>


{{"demo": "Example.js", "bg": "inline", "defaultCodeOpen": false}}

## Memoize inner components with `React.memo`

The `DataGrid` component is composed of a central state object where all data is stored.
Expand Down
1 change: 1 addition & 0 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"@trendmicro/react-interpolate": "^0.5.5",
"@types/lodash": "^4.14.194",
"@types/moment-hijri": "^2.1.0",
"@types/rbush": "^3.0.0",
"@types/react-dom": "^18.2.4",
"@types/react-router-dom": "^5.3.3",
"ast-types": "^0.14.2",
Expand Down
2 changes: 2 additions & 0 deletions docs/pages/_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ import createEmotionCache from 'docs/src/createEmotionCache';
import findActivePage from 'docs/src/modules/utils/findActivePage';
import { LicenseInfo } from '@mui/x-license-pro';

import '@mui/x-data-grid-premium/concept/style.css'

// Remove the license warning from demonstration purposes
LicenseInfo.setLicenseKey(process.env.NEXT_PUBLIC_MUI_LICENSE);

Expand Down
3 changes: 3 additions & 0 deletions docs/pages/x/concept/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { ExampleConcept } from '@mui/x-data-grid-premium'

export default ExampleConcept
Loading