You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’ve been trying out your library for almost two months now (loving it so far), but I’m having a hard time understanding the purpose of interceptors. I currently have a deep link and two other access points that should lead to a specific screen. I’m trying to use an interceptor to check if the screen is in a working state (e.g., the backend might be down). If it isn’t, I want the user to stay on the screen they were on before the navigation attempt, with a simple error window showing up—nothing more.
I’m using: completion(.failure(RoutingError.generic(.init("Service is unavailible")))).
What makes me wonder if I am doing things right is the fact that assertionFailure("Navigation is unsuccessful: \(error)")
stops the app from running in debug mode. It almost feels like I’ve misunderstood the purpose of interceptors entirely.
I’d love a brief explanation of this part! At this point, I’m considering removing assertionFailure() altogether, but I’m not entirely sure if that’s a good idea. :c
The text was updated successfully, but these errors were encountered:
Hi!
I’ve been trying out your library for almost two months now (loving it so far), but I’m having a hard time understanding the purpose of interceptors. I currently have a deep link and two other access points that should lead to a specific screen. I’m trying to use an interceptor to check if the screen is in a working state (e.g., the backend might be down). If it isn’t, I want the user to stay on the screen they were on before the navigation attempt, with a simple error window showing up—nothing more.
I’m using:
completion(.failure(RoutingError.generic(.init("Service is unavailible")))).
What makes me wonder if I am doing things right is the fact that
assertionFailure("Navigation is unsuccessful: \(error)")
stops the app from running in debug mode. It almost feels like I’ve misunderstood the purpose of interceptors entirely.
I’d love a brief explanation of this part! At this point, I’m considering removing
assertionFailure()
altogether, but I’m not entirely sure if that’s a good idea. :cThe text was updated successfully, but these errors were encountered: