mirror of
https://github.com/umami-software/umami.git
synced 2026-02-24 06:25:43 +01:00
Added more cache checks.
This commit is contained in:
parent
ef9f8ed816
commit
83fb358355
9 changed files with 22 additions and 18 deletions
|
|
@ -2,11 +2,13 @@ import useApi from 'components/hooks/useApi';
|
|||
import TeamMembersTable from './TeamMembersTable';
|
||||
import useFilterQuery from 'components/hooks/useFilterQuery';
|
||||
import DataTable from 'components/common/DataTable';
|
||||
import useCache from 'store/cache';
|
||||
|
||||
export function TeamMembers({ teamId, readOnly }) {
|
||||
const { get } = useApi();
|
||||
const modified = useCache(state => state?.['team:members']);
|
||||
const queryResult = useFilterQuery(
|
||||
['team:users', teamId],
|
||||
['team:members', { teamId, modified }],
|
||||
params => {
|
||||
return get(`/teams/${teamId}/users`, {
|
||||
...params,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue