r/reactjs • • Sep 29 '25

Needs Help Tanstack table with db level operations

So I am new to Tanstack table and Next.js, I am building a application that can handle adding columns, rows dynamically, editing cell values,.... with Tanstack table. I have read some docs and it seems like Tanstack table have sort, filter, search in client side, if I want those operations to happen at db level but still need ui not to load too slow, any ideas to help me with that ?

1 Upvotes

13 comments sorted by

View all comments

Show parent comment

0

u/Merry-Lane Sep 29 '25

You gotta prevent changes to the currently edited row by saving the "currently edited row" in your state and refer to it. There are reconciliation issues you could also try and solve.

Anyway the simplest thing you can do is to show a loader that prevents changes when there is an api call. Also, optimise your api call so that it’s faster.