Skip to content

Post Cache #352

Open
Open
@renehauck

Description

@renehauck

Describe the bug
Hi, I was just about to use this package, but somehow I'm stuck with creating a button that should execute a "post" on a specific route. But the post is only executed once, unless I refresh the page or change a query parameter.

⚠️ Make a Codesandbox ⚠️

// only works once 
const {post} = useFetch(`/hello`)
....
post({id:1})
// Works as expected several times
const {post} = useFetch(`/hello?q=${new Date().getTime()}`)
....
post({id:1})

Am I doing something wrong or is this possibly a bug. Thanks for the work!

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