Is it possible to clear the nav to root


#1

Hi all, is possible to clear the nav to root, so that next launch should always go to my root page.
What are the possible solutions.
Thanks


#2

You can use the popToRoot(opts) NavController function.
NavController