Skip to content

Non-subscribed requests with keepUnusedDataFor: 0 are canceled #5079

@markerikson

Description

@markerikson

If I set keepUnusedDataFor: 0 on an endpoint,
and in a component call initiate inside a useEffect with the option { subscribe: false },

then the request never returns a response because it gets immediately aborted.

Is this the expected behavior?

Originally posted by @yankinx in #5067 (comment)

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