refactor(web): fetch query data on page change

This commit is contained in:
Luke committed 2023-03-26 12:47:45 +02:00
1 parent 1e5aa95691
commit 109344e097
4 files changed
+20 -17

No files matched your search

@@ -12,6 +12,7 @@
import { writable } from 'svelte/store';
import { meta } from 'tinro';
import { fetchNui } from '../../../utils/fetchNui';
import { tablePage } from '../../../store';
const route = meta();
@@ -67,7 +68,7 @@
$: {
fetchNui('fetchResource', {
resource: route.params.resource,
pageIndex: 0,
pageIndex: $tablePage,
sortBy: sorting,
});
}