New dismiss @Environment variable, presentationMode in Beta 2

Is it possible that this new dismiss action (and also the older presentationMode.wrappedValue.dismiss() ) are broken in beta 2?

It works as long as you navigate just one level deep. But if say you navigate into a detail view A and from there in another detail view B and there you have a button which calls dismiss, the navigation gets totally confused and also logs an error "Unbalanced calls to begin/end appearance transitions for..." Or am I doing something wrong? I tried it in a really simple test project and I can't get it to work properly.

update: I now filed a feedback for it FB9211136

Ok I guess it was actually partially my fault. I see they fixed some navigation issues in beta 3.

but if you have multiple levels of navigation you have to set isDetailLink(false) accordingly.

in my example I have a main list going to another view (let’s say View A). And from this view you can go to a detail view. Now if I dismiss from detail view i want to go back to view A and not the main list. so i have to set on the links in the main list isDetailLink(false)

New dismiss @Environment variable, presentationMode in Beta 2
 
 
Q