Skip to content

Auto managed useFetch doesn't append URL to provider #247

Closed
@YassienW

Description

@YassienW

Describe the bug
When providing a URL via Provider component, useFetch URL doesn't get appended to Provider URL. This seems to only apply to auto managed useFetch

⚠️ Make a Codesandbox ⚠️
https://codesandbox.io/s/use-http-provider-bug-1n0mm?file=/src/App.js

To Reproduce
Steps to reproduce the behavior:
Check network tab in codesandbox, first request with empty string uses the Provider's URL, second and third requests don't use the Provider's URL

Expected behavior
The "/test" path should get appended to the provider's URL

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