square / flow

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

Do not reload rest api when go back #273

Open bisrinursa opened 7 years ago

bisrinursa commented 7 years ago

I try to use RestClient in square flow. This is my step :

Example:
1. Main screen call rest api in presenter. And then go to screen 2
2. On screen 2, call goBack. 

Why when go back to screen 1, rest api is called? How prevent rest client running when goBack?

Zhuinden commented 6 years ago

Depends on your Dispatcher implementation, and your Screen implementation (which sounds like it is your own thing), so it is not Flow's concern, tbh.