Skip to content
This repository has been archived by the owner on Nov 11, 2023. It is now read-only.

Fix: Path resolution when base path is null/empty #160

Merged
merged 1 commit into from
Oct 28, 2019

Conversation

Manishalexin
Copy link
Contributor

Why

Fixes #159 and partially #93.
Get Component does not resolve the path properly when the base prop is not provided. It returns the path with a preceding slash.
This is not the case in useGet as useGet uses a different resolvePath function in useGet.tsx, while Get component uses composePath & composeUrl.

Tests: No additional tests were written and all tests are passing.

Copy link
Contributor

@TejasQ TejasQ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! Thanks for your contribution!

@TejasQ TejasQ merged commit e2877f7 into contiamo:master Oct 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Get Component fails to resolve path without RestfulProvider's base prop
2 participants