Skip to content

Commit

Permalink
Align migration guide
Browse files Browse the repository at this point in the history
  • Loading branch information
arminmeh committed Dec 3, 2024
1 parent 6487529 commit 23ef527
Showing 1 changed file with 5 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,11 @@ Below are described the steps you need to make to migrate from v7 to v8.
- The `<GridOverlays />` component is not exported anymore.
- `gridRowsDataRowIdToIdLookupSelector` was removed. Use `gridRowsLookupSelector` in combination with `getRowId()` API method instead.

```tsx
// Before
const idToIdLookup = gridRowsDataRowIdToIdLookupSelector(apiRef);
...
const rowId = idToIdLookup[id]

// After
const rowsLookup = gridRowsLookupSelector(apiRef);
...
const rowId = apiRef.current.getRowId(rowsLookup[id])
```diff
-const idToIdLookup = gridRowsDataRowIdToIdLookupSelector(apiRef);
-const rowId = idToIdLookup[id]
+const rowsLookup = gridRowsLookupSelector(apiRef);
+const rowId = apiRef.current.getRowId(rowsLookup[id]);
```

### Localization
Expand Down

0 comments on commit 23ef527

Please sign in to comment.