Skip to content

RTK Query clarification best way to partial update nested state returned from query hook cross multiple component #4563

Closed

Description

option 1:
i can use usePostQueryById and then setState and then pass the state and setState to child as prop and so one and then save that state in useUpdatePost(state)

option 2 :

using updateQueryData to that endpoint and then get the last state of usePostQueryById and then useUpdatePost(state)
is there are another better way to partial update nested state cross multiple component

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions