React navigator resetPage causes blank screen
-
I have discovered that the usage of resetPage/replacePage command will cause the screen to go blank. The first time invoking resetPage/replacePage command to component eg: Home page will be fine, but the second time this is invoked the Home page will be loaded for a second, then it turns blank, rendering the app unusable. Is there any workaround for this?
-
Looks like this is a legitimate bug. I’ve opened an issue on GitHub https://github.com/OnsenUI/OnsenUI/issues/2594.
Hopefully we can get this fixed soon.
-
In your
renderPage
function, do you assign a key to the page that is returned? If thekey
prop isn’t set,resetPage
would almost definitely break the application.Please let me know if you are setting
key
. I’m trying to fix this bug and if you haven’t setkey
then I think that must be the problem.