Skip to content

How to perform cascade queries? #1213

Open
@equinoxel

Description

@equinoxel

I've got a situation where I need to log in and then fetch useful data. Unfortunately, the login is via a form and the site times out pretty fast. Therefore, I'd need to perform two (or more) calls in sequence (i.e. make sure the login call finished before executing the second one). So far I came with 2 variants:

  1. enqueue the second call from within the onResponse() of the first one
  2. Use Observables with map()

Is there an advised approach for this?

PS: Also on SO.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions