Skip to content

Dependent Suspense Queries #65

@kalijonn

Description

@kalijonn

Currently dependent queries can be used only with atomWithQuery.

In the scenario of 2 atoms, we can get the result of the first atom by unwrap which resolves to be undefined/Result. We use the enabled flag on the 2nd atom to make the API request only when its 'Result'

We cannot await because these atoms don't support async getOptions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions