Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't get NavigationRouter via protocol #118

Open
PortgasDTee opened this issue Feb 13, 2023 · 0 comments
Open

Can't get NavigationRouter via protocol #118

PortgasDTee opened this issue Feb 13, 2023 · 0 comments

Comments

@PortgasDTee
Copy link

PortgasDTee commented Feb 13, 2023

@RouterObject var authRouter: NavigationRouter<AuthCoordinatorType>?
AuthCoordinator have been init and router stored but when I use authRouter, it is nil

protocol AuthCoordinatorType: AnyObject {}

final class AuthCoordinator: AuthCoordinatorType, NavigationCoordinatable {
lazy var routerStorable: AuthCoordinatorType = self
...
}

I checked on func func retrieve<T: Routable>() -> T? in class RouterStore
Stored router have type NavigationRouter<AuthCoordinator> can't cast to NavigationRouter<AuthCoordinatorType>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant