mirror of
https://github.com/umami-software/umami.git
synced 2026-02-10 07:37:11 +01:00
Added more cache checks.
This commit is contained in:
parent
ef9f8ed816
commit
83fb358355
9 changed files with 22 additions and 18 deletions
|
|
@ -4,10 +4,12 @@ import useFilterQuery from 'components/hooks/useFilterQuery';
|
|||
import DataTable from 'components/common/DataTable';
|
||||
import UsersTable from './UsersTable';
|
||||
import UsersHeader from './UsersHeader';
|
||||
import useCache from 'store/cache';
|
||||
|
||||
export function UsersDataTable() {
|
||||
const { get } = useApi();
|
||||
const queryResult = useFilterQuery(['users'], params => {
|
||||
const modified = useCache(state => state?.users);
|
||||
const queryResult = useFilterQuery(['users', { modified }], params => {
|
||||
return get(`/users`, {
|
||||
...params,
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue