await handler search?
Hello - I have a 10,000+ row table. After entering a search phrase, it can take up two seconds to update the table. Is there a way I can track the search progress - so I can display some sort of status spinner while it's updating? Thanks.
Hello, Depends on where data is updated.
- Is it on server side, do you fetch data while user is searching?
- Is it a client side search, you load 10_000 rows and apply search on it?
For both I guess there is a possibility but in different ways
@vincjo Is there a workaround with serverside data at the moment?
For example by adding a isLoading state in your data fetching function.
It requires to create a store.
handler.onChange(async (state) => {
isLoading.set(true)
// [await fetching data....]
isLoading.set(false)
return data
})
Not ideal but at least, you have access to a "pending" state each time your data is loaded.