React navigator resetPage causes blank screen
AspiringWizard last edited by AspiringWizard
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.
renderPagefunction, do you assign a key to the page that is returned? If the
keyprop isn’t set,
resetPagewould 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 set
keythen I think that must be the problem.