How to solve infinite loop when data is empty? #4576
Unanswered
tekno0ryder
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Regarding #4566
After investigation I found that
memo()
is not working as expected whendata = []
That is because old deps is
[]
and new deps is[]
, using!==
comparison inmemo()
this is always evaluates totrue
which causesgetRowModel()
to be executed again and againIn table-core package
utils.ts : line 145
Changing From
To
Will make the condition evaluate
false
and solves the infinite loopThat being said this is ad-hoc solution and wondering how could we solve it properly
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions