Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
piotruela opened this issue Oct 31, 2024 · 0 comments
Open

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

piotruela opened this issue Oct 31, 2024 · 0 comments

Comments

@piotruela
Copy link
Collaborator

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,
    ...
@piotruela piotruela changed the title Builder/Cubit for combining multiple requests GET on one page. Builder/Cubit for combining multiple GET requests on one page. Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant