Skip to content

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

@xaota

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

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