Page rebuilding - tomgilder/routemaster GitHub Wiki
Due the way Routemaster works, pages might not always rebuild when you would expect them to.
For instance, let's say:
- You have a
MainPage
that has three tabs - The first tab sub-page is
FeedPage
You'd probably expect that if you rebuilt MainPage
(say, by calling setState()
) then the FeedPage
would also rebuild, because it's a descendent.
This currently doesn't happen.
When you rebuild a PageStackNavigator
, it does not rebuild the pages, which means the widgets of those pages won't rebuild.
You'll have to ensure the child pages also rebuild, for instance by using global state management.
In practice this isn't often a problem, but I'm looking into ways to solve this in future versions of Routemaster.