React-virtualized: Uncaught Error: Invalid offset NaN specified(…)

Created on 10 Nov 2016  Â·  7Comments  Â·  Source: bvaughn/react-virtualized

Dear Developers,

i am using "react-virtualized": "7.24.3", all looks good on initial load but on column click header i sort out list and pass it back to Grid to renderer sorted list, i see below stack trace. i tried to add scrollTop={0} property to grid but still i see this error in console and my grid become somewhat unresponsive after that onwards. Any idea how to avoid that error ?

screen shot 2016-11-10 at 9 12 40 am

Most helpful comment

I had the same error too, because I passed a wrong rowCount(NAN) to Table
I fixed this problem by pass the right params

All 7 comments

kindly ignore this error. i fixed it. seems like after sorting i was passing immutable instance of display records.

Sure thing. Closing.

this error still exists, it seems that it is not fixed

The error reported in this issue was user error (see here) so you're either doing the same thing, or you're referring to a different error. 😄

I have the same error after checking a checkbox. Can't figure out how to find the source of the problem, or what pkumar84 did to fix it when it happened to them.
[Followup for future Googlers:] "Might not be the case for you, but for me, 100% of the time I find it when I console log the props I am sending to List/Grid, and track back from there." An error was changing the data object used by render.

I had the same error too, because I passed a wrong rowCount(NAN) to Table
I fixed this problem by pass the right params

Would be nice to have a more descriptive error message when passing NAN to rowCount :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zllc picture zllc  Â·  3Comments

wnz99 picture wnz99  Â·  3Comments

djeeg picture djeeg  Â·  3Comments

ellatrix picture ellatrix  Â·  3Comments

SBoudrias picture SBoudrias  Â·  3Comments