Skip to content

check usage signal as first argument of service, or args - object + signal as second arg #1

Description

@xaota
const service = (a, b, c, signal) => ...

const { fetcher } = useFetch(service);

fetcher(a) // WRONG! service will be added as argument b

options:
1

const service = ({ a, b, c }, signal) => ...

2

const service = (signal, a, b, c) => ...

but this is not ok for not updated services

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions