fluttercommunity/rx_command

State was not preserved after navigation

boozy-ph opened this issue · 2 comments

I'm having state issue when changing route. Is this intentional?

Methods used were the following:

Navigator.of(context).pushNamed('/home');

// or

Navigator.of(context).pushNamedAndRemoveUntil(
                      '/home', (Route<dynamic> route) => false);

what do you mean by state issue? In which context to RxCommands?

My bad, I thought when using Navigator.of(context).pushNamedAndRemoveUntil the state was removed because previous route was removed as well. I just did hot restart and my app is working fine now.