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
- Fixes an issue with path resetting on subsequent appearances (#33) — committed to johnpatrickmorgan/NavigationBackport by johnpatrickmorgan a year ago
- Addresses iOS 15 crash when removing a local destination (#33) On iOS 15, there are some extraneous re-renders after LocalDestinationBuilderModifier is removed from the view tree. Dispatching async a... — committed to johnpatrickmorgan/NavigationBackport by johnpatrickmorgan a year ago
@johnpatrickmorgan it looks like it is working indeed, I will run a couple more tests to confirm! but looks good!