-
Notifications
You must be signed in to change notification settings - Fork 22
Description
Hey,
First of all, this is a great hook! Thanks for providing it - all the appreciation for your work.
I tried the useCellRangeSelection with virtualization, I have enabled in my POC project both: react-window and react-virtual, but for both of them the hook is failing.
Error details:
Error: React Table: startCellId and endCellId has to be valid cell Id
Code path:
// Returns all cells between Range ( between startcell and endcell Ids)
const getCellsBetweenId = React.useCallback(
(startCell, endCell) => {
if (!cellsById[startCell] || !cellsById[endCell]) {
console.info({ startCell, endCell })
throw new Error(
React Table: startCellId and endCellId has to be valid cell Id
)
}
I was expecting the cells to be used from the object that's still in memory and not from the rendering objects that are dropped. But since I am new to these hooks I might miss something.
Thanks again.