Skip to content

Optimistic Updates #397

@j

Description

@j

I like the reactivity pattern, but can I run a mutation that may return the same shape as some query and just bypass the query fetching call?

Basically:

getUser RPC returns User
updateUser RPC returns User

I want to just update instead of invalidate and refetch without having to sync another atom.

I'm used to TanStack query and want to try this but want Stale Queries and Optimistic Updates

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions