Notice: The Monaca & Onsen UI Community Forum is shutting down.

For Onsen UI bug reports, feature requests and questions, please use the Onsen UI GitHub issues page. For help with Monaca, please contact Monaca Support Team.

Thank you to all our community for your contributions to the forum. We look forward to hearing from you in the new communication channels.

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?



  • Onsen UI

    @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.