You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hitting a backend multiple times is obviously not desirable, especially with many users. Since I don't see this behaviour in GridJS itself, I can only assume something is wrong in the Svelte component. My Svelte (and JS in general) isn't good enough for me to troubleshoot the issue on my own.
The text was updated successfully, but these errors were encountered:
As per the title, I have found that when sorting is enabled, GridJS makes additional requests to the server url per column that sorting is enabled on.
Below is a simple Svelte component. I have set
sort
totrue
When the page loads, I can see 6 calls to my backend server:
If I disable sort, I get just the one call:
And if I enable sort on a single column, I get two calls:
I cannot reproduce this behaviour when using GridJS in a standalone HTML page:
Again,
sort
is enabled for all 5 columns, but only ever a single call to the backend:I don't see anything in the documentation for
gridjs-svelte
that suggests this is normal or expected behaviour.Interestingly, your own example at https://svelte.dev/repl/e772220feac54e65b132615ac4d8eb09 shows the same behaviour. Enabling sort causes multiple backend calls.
Hitting a backend multiple times is obviously not desirable, especially with many users. Since I don't see this behaviour in GridJS itself, I can only assume something is wrong in the Svelte component. My Svelte (and JS in general) isn't good enough for me to troubleshoot the issue on my own.
The text was updated successfully, but these errors were encountered: