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 register url with a deep path. please have a look! #21

Open
ivanyang1984 opened this issue Mar 16, 2016 · 1 comment
Open

can't register url with a deep path. please have a look! #21

ivanyang1984 opened this issue Mar 16, 2016 · 1 comment

Comments

@ivanyang1984
Copy link

Here is the entities i printed:

"home/shopItemList" = "WAAppRouteEntity description:<WAAppRouteEntity: 0x7f9a9c073000>\nname: home/shopItemList\npath: home/shopItemList\nsourceControllerClass: LSSellerHomeViewController\ntargetControllerClass: LsShopListVC\npresentingController: <LSHomeNavigationController: 0x7f9a9c067850>\npreferModalPresentation: 0\nallowedParameters: (null)\n";
"home/shopItemList/shop" = "WAAppRouteEntity description:<WAAppRouteEntity: 0x7f9a9c104900>\nname: home/shopItemList/shop\npath: home/shopItemList/shop\nsourceControllerClass: LsShopListVC\ntargetControllerClass: StoreInfoController\npresentingController: <LSHomeNavigationController: 0x7f9a9c067850>\npreferModalPresentation: 0\nallowedParameters: (null)\n";
"home/shopItemList/shop/chat" = "WAAppRouteEntity description:<WAAppRouteEntity: 0x7f9a9c104fb0>\nname: home/shopItemList/shop/chat\npath: home/shopItemList/shop/chat\nsourceControllerClass: StoreInfoController\ntargetControllerClass: ChatViewController\npresentingController: <LSHomeNavigationController: 0x7f9a9c067850>\npreferModalPresentation: 0\nallowedParameters: (null)\n";

i can register home/shopItemList/shop and home/shopItemList/shop/chat because i have an im entry in shop page.

when i click to go chatting, it was crashed on here:
WAAssert(!foundedEntity || foundedEntity && !entity.sourceControllerClass, ([NSString stringWithFormat:@"Error: you cannot have two entities with the same target class (%@) if the source is not nil. Cannot resolve the path.", NSStringFromClass(entity.targetControllerClass)]));

if i forced to remove this assert , when i click go back it will directly go back to shopItemList instead of shop. then i think that was a bug or that operation was not currently supported.

please kindly advise it.

@ipodishima
Copy link
Contributor

Please update for the WIP I made on this and let me know

pod 'WAAppRouting', :git => 'https://github.com/Wasappli/WAAppRouting.git', :commit => 'ede0f90e5ff040eb77239d1f54253efe49785fb6'

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

2 participants