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

Support functions #2

Closed
Closed
@dmitryshelomanov

Description

@dmitryshelomanov

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions