alibaba/fish-redux

Page not replaced

abuharsky opened this issue · 0 comments

Hello, please advice me, how to use page on next scenario:

I have a part in my app that uses master-detail layout.

Master widget displays an list, detail widget displays same page class but with different data (depends on selected item on master list).
tablet

I use this lib for master-detail https://pub.dev/packages/responsive_scaffold
When some item on master list selected, next code creates new page

detailBuilder: (BuildContext context, int index, bool tablet) { return DetailsScreen( body: SettingsPage() .buildPage({"data": state.items[index]})); },
where SettingsPage() is an fish-redux page and its never recreated here.
Looks like its cached and returned previously created page.

How to solve this?