Skip to content

When adding new entities into a query's cache using updateQueryData, "api.provided" isn't updated (UPDATED) #3251

@dutziworks

Description

@dutziworks

When calling updateQueryData, is there a way to update the provided tags of the query whose cache was updated?

Our optimistic update needs to opt. CREATE an entity (that didn’t exist before) and add it into a query’s cache.

That new entity is now inside the cache, but not listed inside api.provided, since it didn’t go through the “regular” flow (fetched through a list/get endpoint).

Is there a way to also update that list/get endpoint’s provided tags?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions