square / flow

Name UI states, navigate between them, remember where you've been.
Apache License 2.0
2.79k stars 241 forks source link

Recipe for creating nested screens with Flow? #278

Closed saket closed 6 years ago

saket commented 6 years ago

Hello, I've been experimenting with Flow for a few days now, but I cannot figure out what's the best way to handle nested screens with Flow, where each screen has a key associated with it.

Is it recommended to use multiple Flow instances for every level of nesting? Or would you instead recommend having a single Flow instance for the entire app, where MultiKey owners can register key-changer for their child keys?

saket commented 6 years ago

Moving this question to StackOverflow instead: https://stackoverflow.com/questions/48878875/recommended-way-for-creating-nested-screens-with-square-flow