Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

Support functions #2

Closed
dmitryshelomanov opened this issue Feb 2, 2019 · 0 comments
Closed

Support functions #2

dmitryshelomanov opened this issue Feb 2, 2019 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@dmitryshelomanov
Copy link
Member

Add new support functions

export const isReady = (status) => status === fetchStatus.ready
export const isFailed = (status) => status === fetchStatus.failed
export const isInitial = (status) => status === fetchStatus.initial
export const isLoading = (status) => status === fetchStatus.loading

what to write

isReady(status)

instead

status === fetchingStatus.ready
@sergeysova sergeysova self-assigned this Feb 3, 2019
@sergeysova sergeysova added enhancement New feature or request good first issue Good for newcomers labels Feb 3, 2019
@sergeysova sergeysova removed their assignment Feb 3, 2019
@sergeysova sergeysova pinned this issue Feb 3, 2019
dmitryshelomanov pushed a commit to dmitryshelomanov/symbiote-fetching that referenced this issue Feb 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants