Onsen-React Navigator resetPageStack not working?
-
Hey all. I’m trying to use the Navigator component in Onsen/React, and I want to pop all the routes that are currently on the stack. I thought resetPageStack() would do that, but it’s not working.
Anyone happen to know how to reset the entire page stack of a Navigator instance?
Thanks,
Scott
-
@sherscher
resetPage(page)
should reset the whole stack and only show the provided page.resetPageStack([ ... ])
gets an array of pages and removes everything else.
-
Thanks for replying Fran. I thought I tried that, but maybe I didn’t do it correctly. I’ll try it again and let you know what happens.
Scott