Skip to content

When using axios example provided by the repo, data becomes undefined after running bound mutate #586

@serendipity1004

Description

@serendipity1004

I am running a bound mutate and using the axios example in this repo. I would expect the data to maintain previous result until request has finished but it seems to turn undefined and returns the network data. How can I achieve optimistic response like behaviour using SWR?

Metadata

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