Skip to content

StateOption data as promise or pass through when mocks are not available #168

Description

@k3nsei

Currently data property in StateOption can be only (primitive | Object | Function). But I have url that is responsible for returning many variants of data based on request payload (kinda like GraphQL). So I need to have ability to serve mock when some conditions are metting my predicates in other case it need to pass through request to real backend and return data from there.

So to do that I need to be able to set data property as Promise or have some pass through option to call real backend to get data.

Activity

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions