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
Check the actual fetched URL in Network tab
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