T
TanStack3y ago
metropolitan-bronze

Show spinner while filtering data [v8]

Hi, is it possible to show a spinner while the table is filtering (or sorting) a large dataset? It takes to filter the data about 1-1.5s, and I would like to show some kind of indicator to the user.
2 Replies
foreign-sapphire
foreign-sapphire3y ago
hey have you found a solution?
harsh-harlequin
harsh-harlequin3y ago
Javascript is a single-threaded language, which means that it performs one task at time. As the sort/filter from table is done at client side, you'll need to use web workers to achieve what you want. Web workers basically run tasks in the background without interfering in the UI, so you could add a loader while the sort/filter is being done by it.

Did you find this page helpful?