Zhuinden / simple-stack

[ACTIVE] Simple Stack, a backstack library / navigation framework for simpler navigation and state management (for fragments, views, or whatevers).
Apache License 2.0
1.36k stars 76 forks source link

Decide on what should happen if a service is registered by the same name into the same scope #189

Closed Zhuinden closed 4 years ago

Zhuinden commented 5 years ago

Potentially a user error, but currently I think it'd make the lifecycle callbacks whack.

I should verify this and properly call the unregister calls when this happens..

Zhuinden commented 4 years ago

Doesn't it just overwrite it in the map?

Yolo, don't use the same name

The service lifecycle callbacks occur only after the services are bound.