Users can set preferences for test networks for themselves. Those preferences are stored in the local state. When a network is removed and the user had a preference for that network then the app crashes. The fix is to clear the local state.
Why?
It's not a good look and it will surface again in the future. The fix is very destructive for the end-user if they have other local state (like the address book).
How?
soft delete the networks instead
add some error boundaries (even if there's a error in some of the components, it shouldn't bring the whole app down)
remove the expectation that all the networks exist that are stored in the local state
What?
Users can set preferences for test networks for themselves. Those preferences are stored in the local state. When a network is removed and the user had a preference for that network then the app crashes. The fix is to clear the local state.
Why?
It's not a good look and it will surface again in the future. The fix is very destructive for the end-user if they have other local state (like the address book).
How?
soft delete the networks instead