Skip to content

Mutation doesn't appear to update a queried object so no changes visible in the UI until app is reloaded #3544

@duncangroenewald

Description

@duncangroenewald

Question

Perhaps I misunderstand how Apollo-ios is supposed to work but if I query and object and then submit a mutation to update some of its properties the original objects properties don't seem to be updated - they are in the database but they are never reflected in the UI until the application is shutdown and restarted.

Am I missing something here ? Doesn't the client side cache the objects and automatically update properties following a mutation ?

Interesting that none of the tutorials seem to show updates to an object that has been fetched and how to ensure that the updates are reflected in the UI.

Should this work and if not then what is the normal way to reflect updates in the user interface.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionIssues that have a question which should be addressed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions