Skip to content

POST serverFn instantly aborts with signal #4271

Open
@rfedoruk

Description

@rfedoruk

Which project does this relate to?

Start

Describe the bug

If ServerFN method is POST and you pass in a signal, it immediately aborts.
If the method is get, signal works as expected, and when you cancel from browser, it works.

Your Example Website or App

https://stackblitz.com/edit/tanstack-router-sae51kdu?file=src%2Froutes%2Findex.tsx

Steps to Reproduce the Bug or Issue

Go to example,
Press "Test Post Cancel"
Observe logs in console, it just aborts right away, abort is true, even though it actually isnt in the browser.

Expected behavior

It should behave the same as when its a GET server fn, and should abort when the signal says to.

Screenshots or Videos

No response

Platform

MacOS, chrome and firefox

Additional context

would be happy to help fix this in the next week or so if this is a good first issue!

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