Skip to content

auto managed useFetch does return stale data when body changes #298

Open
@macrozone

Description

@macrozone

Describe the bug

useFetch sends old post body data, even if you specify a dependency array

⚠️ Make a Codesandbox ⚠️

https://codesandbox.io/s/usefetch-provider-requestresponse-interceptors-forked-39tn3?file=/src/index.js

it uses an echo server

To Reproduce

see code sandbox

Expected behavior

useFetch should resend the post request when the dependency array changes

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