You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 11, 2023. It is now read-only.
Describe the bug
If Get Component is used without RestfulProvider top-level configuration, the path resolution adds a preceding slash to endpoints. This does not happen with the useGet method. It works as expected.
For example, the below code will result in incorrect get request of /https://dog.ceo/api/breeds/image/random
Describe the bug
If Get Component is used without RestfulProvider top-level configuration, the path resolution adds a preceding slash to endpoints. This does not happen with the useGet method. It works as expected.
For example, the below code will result in incorrect get request of
/https://dog.ceo/api/breeds/image/random
To Reproduce
Steps to reproduce the behavior:
yarn add restful-react
Reproducible Demo
Expected behavior
Even without the global configuration of RestfulProvider, Get Component should parse the right URL and fetch the data.
Screenshots
N/A
Desktop (please complete the following information):
Smartphone (please complete the following information):
N/A
Additional context
N/A
The text was updated successfully, but these errors were encountered: