mirror of
https://github.com/darksaid98/oxmysql.git
synced 2026-12-02 22:22:50 +00:00
refactor(web): fetch query data on page change
This commit is contained in:
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,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user