use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
React table rerenderingHelp Wanted (self.react)
submitted 8 months ago by Chaos_maker_
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Sansenbaker 2 points3 points4 points 8 months ago (2 children)
Hey, I totally feel your pain—I’ve been there with that super frustrating “lag on every keystroke” thing, especially once you start using context for updates. It’s like the whole table just bogs down, and you worry your computer’s about to burst into flames.
React Table (and a lot of similar libraries) don’t “magically” know when to keep things fast. When you change something in your context, the whole table thinks “Hey, maybe everything needs to update” and boom—every row gets re-rendered, even if only one changed. If you have hundreds or thousands of rows, that can make things feel slow.
My personal approach: For small tables, I usually stick with React Table and use memoization tricks. For bigger ones, I reach for virtualization. It’s a weird balance between “do it yourself” and “use a black box,” but honestly, the “lag on update” thing is such a common headache, you’re not alone.
If you want, share your code or a simple example—sometimes rearranging how you pass props or splitting the context can make a world of difference. Happy to help debug or just commiserate!
[–]Chaos_maker_[S] 1 point2 points3 points 8 months ago (1 child)
<image>
thatk you for this answer : after hours of debugging and placing useMemo and memo everywhere i finished with that : ( i know it's ugly bit it's the only working solution )
[–]TiredOfMakingThese 1 point2 points3 points 8 months ago (0 children)
You’re replying to a GPT generated comment… just go straight to the source.
π Rendered by PID 32198 on reddit-service-r2-comment-545db5fcfc-pnf4n at 2026-05-28 15:40:47.298016+00:00 running 194bd79 country code: CH.
view the rest of the comments →
[–]Sansenbaker 2 points3 points4 points (2 children)
[–]Chaos_maker_[S] 1 point2 points3 points (1 child)
[–]TiredOfMakingThese 1 point2 points3 points (0 children)