How to memoize flexRender?
I want to prevent cells from rerendering when cell props does not change. I think problem is in flexRender function, but can not find way to memoize it.
I added memo to custom cell input, useMemo to columns.
6 Replies
complex-teal•3y ago
Hi. We had this problem in SolidJS, this is the solution we came up with in our project:
And then:
useful-bronze•2y ago
Is it react example? What are <Show/> and <Dynamic/>?
complex-teal•2y ago
Sorry, no, this is SolidJS. I forgot this is not the standard.
useful-bronze•2y ago
I try to do the same using React,wrapping cell's content in usememo, but it doesn't help(
rare-sapphire•2y ago
Is there any reason for this, do you actually see a perf issue at this moment?
useful-bronze•2y ago
Yeah, I want to prevent extra retenders unchanged rows/cells