Fix tasks (#5199)
## Query depth deprecation I'm deprecating depth parameter in our graphql query / cache tooling. They were obsolete since we introduce the possibility to provide RecordGqlFields ## Refactor combinedFindManyRecordHook The hook can now take an array of operationSignatures ## Fix tasks issues Fix optimistic rendering issue. Note that we still haven't handle optimisticEffect on creation properly
This commit is contained in:
@ -1,9 +1,10 @@
|
||||
import { QueryKey } from '@/object-record/query-keys/types/QueryKey';
|
||||
import { ALL_FAVORITES_QUERY_KEY } from '@/prefetch/query-keys/AllFavoritesQueryKey';
|
||||
import { ALL_VIEWS_QUERY_KEY } from '@/prefetch/query-keys/AllViewsQueryKey';
|
||||
import { RecordGqlOperationSignature } from '@/object-record/graphql/types/RecordGqlOperationSignature';
|
||||
import { FIND_ALL_FAVORITES_OPERATION_SIGNATURE } from '@/prefetch/query-keys/FindAllFavoritesOperationSignature';
|
||||
import { FIND_ALL_VIEWS_OPERATION_SIGNATURE } from '@/prefetch/query-keys/FindAllViewsOperationSignature';
|
||||
import { PrefetchKey } from '@/prefetch/types/PrefetchKey';
|
||||
|
||||
export const PREFETCH_CONFIG: Record<PrefetchKey, QueryKey> = {
|
||||
ALL_VIEWS: ALL_VIEWS_QUERY_KEY,
|
||||
ALL_FAVORITES: ALL_FAVORITES_QUERY_KEY,
|
||||
};
|
||||
export const PREFETCH_CONFIG: Record<PrefetchKey, RecordGqlOperationSignature> =
|
||||
{
|
||||
ALL_VIEWS: FIND_ALL_VIEWS_OPERATION_SIGNATURE,
|
||||
ALL_FAVORITES: FIND_ALL_FAVORITES_OPERATION_SIGNATURE,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user