NavigationBackport: Fatal error: No view builder found for key when changing tabs.

Hello! I’m having a crash when I push a View (using the nbNavigationDestination with isPresented) and then switching to another tab. It looks like that when the root view is no longer visible, the deinit in the LocalDestinationBuilderModifier is called, so the removeLocalBuilder is called for all the destinations and ends up with an empty builders array, then, for some reason it tries to build a navigation destination again, and crashes because the builders array is empty.

Any idea of how can I workaround this?

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 16 (6 by maintainers)

Commits related to this issue

Most upvoted comments

@johnpatrickmorgan it looks like it is working indeed, I will run a couple more tests to confirm! but looks good!