Skip to content

Incorrect argument parsing without options #185

Closed
@Gerhut

Description

@Gerhut

Describe the bug
get function changes every time when calling in useFetch(url, deps) format.

⚠️ Make a Codesandbox ⚠️
https://codesandbox.io/s/compassionate-carson-66sbu

Expected behavior
Keep optionsNoURLs undefined if second parameter is array in https://github.com/alex-cory/use-http/blob/master/src/useFetchArgs.ts#L72

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