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
exotic-emerald•2y ago
Hi. We had this problem in SolidJS, this is the solution we came up with in our project:
And then:
evident-indigo•2y ago
Is it react example? What are <Show/> and <Dynamic/>?
exotic-emerald•2y ago
Sorry, no, this is SolidJS. I forgot this is not the standard.
evident-indigo•2y ago
I try to do the same using React,wrapping cell's content in usememo, but it doesn't help(
stormy-gold•2y ago
Is there any reason for this, do you actually see a perf issue at this moment?
evident-indigo•2y ago
Yeah, I want to prevent extra retenders unchanged rows/cells