Fallback route and onError callback for root navigator
I have complex nav reducer with complex logic. It is possible that next nav state redirects on non-existing routeName in some cases.
Can you add api to set "fallback route"? Like on websites there is "fallback on home page".
Error: There is no route defined for key ...
Assume this error has code 404, then
We can write code like this