Skip to content

Conversation

@lukashass
Copy link
Member

When the id parameter is undefined, undefined is returned. Since there is nothing loading that will change the return value, isLoading should be set to false.

@lukashass lukashass requested a review from anbraten November 2, 2021 12:27
@lukashass lukashass changed the title !fix: set isLoading to false when id is undefined fix!: set isLoading to false when id is undefined Nov 2, 2021
@github-actions
Copy link

github-actions bot commented Nov 2, 2021

Coverage report

Total coverage

Status Category Percentage Covered / Total
🟢 Statements 100% 125/125
🟢 Branches 100% 33/33
🟢 Functions 100% 33/33
🟢 Lines 100% 182/182

Status of coverage: 🟢 - ok, 🟡 - slightly more than threshold, 🔴 - under the threshold

Report generated by 🧪jest coverage report action from 6d4b822

@lukashass lukashass enabled auto-merge (squash) November 2, 2021 12:28
@lukashass lukashass merged commit c438912 into main Nov 2, 2021
@lukashass lukashass deleted the useget-undefined-isloading branch November 2, 2021 12:30
@anbraten anbraten mentioned this pull request Nov 2, 2021
anbraten added a commit that referenced this pull request Nov 2, 2021
fix!: set isLoading to false when id is undefined (#53)

BREAKING CHANGE: bump version for #53
@github-actions
Copy link

github-actions bot commented Nov 2, 2021

🎉 This PR is included in version 1.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants