Skip to content
Snippets Groups Projects
Unverified Commit c6e480e8 authored by Jed Fox's avatar Jed Fox Committed by GitHub
Browse files

Move saveScrollWidth call to layout effect (#1366)

parent af53f06e
No related branches found
No related tags found
No related merge requests found
......@@ -1060,12 +1060,6 @@ export const Table = forwardRef<TableHandleRef, TableProps>(
list.current?.setRowAnimation(true);
listInitialized.current = true;
}
});
function renderRow({ index, style, key }) {
let item = items[index];
let editing = editingId === item.id;
let selected = isSelected && isSelected(item.id);
if (scrollContainer.current && saveScrollWidth) {
saveScrollWidth(
......@@ -1075,6 +1069,12 @@ export const Table = forwardRef<TableHandleRef, TableProps>(
scrollContainer.current ? scrollContainer.current.clientWidth : 0,
);
}
});
function renderRow({ index, style, key }) {
let item = items[index];
let editing = editingId === item.id;
let selected = isSelected && isSelected(item.id);
let row = renderItem({
item,
......
---
category: Bugfix
authors: [j-f1]
---
Fix React warning in the console
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment