Libraries
    Preparing search index...

    Type Alias TypedQueryGroup<TGroup>

    TypedQueryGroup: {
        [E in keyof TGroup]: EndpointQueryHooks<
            EndpointCallArgs<TGroup[E]>,
            EndpointResponse<TGroup[E]>,
        >
    } & { queryKey(): readonly unknown[] }

    A single API group on the typed query client.

    Each endpoint in the group is mapped to its EndpointQueryHooks. The group also exposes a queryKey() method for group-level cache invalidation.

    Type Parameters

    • TGroup extends Record<string, any>

    Type Declaration

    • queryKey: function
      • Returns a query key prefix for this entire group. Use with queryClient.invalidateQueries() to invalidate all queries in the group at once.

        Returns readonly unknown[]

        queryClient.invalidateQueries({
        queryKey: queryApi.todos.queryKey()
        });