Facing same issue, when resetting the stack of NavigationStack, onAppear of the screen before root is called. I reset the stack during log out, so calling this screen during this is causing crashes.
Stack before reset
Root -> Home -> PIN -> Setting
Now reset stack from Settings screen
Expected,
NavigationStack just resets, onAppear of previous screens are not called.
What happens,
Home screen's onAppear is called during stack reset
Request apple team to provide me with some work around.
Thanks.