Skip to content

Builder/Cubit for combining multiple GET requests on one page. #39

@piotruela

Description

@piotruela

In my project I have several pages on which I need to perform more that 1 different requests in order to get all the sections that are displayed.
I'd like to have a Builder which will be capable of handling multiple BaseRequestCubits and combine their states into something like:

  • If all 3 are in "Loading state" -> Show just one loading indicator on page,
  • If at least one have the data -> Display it on the page and show other sections with separate loaders,
  • If all three requests failed -> Show just one error state,
    ...

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