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

Consider a way to register services with a key, but without exposing it to the lookup mechanism #182

Closed Zhuinden closed 5 years ago

Zhuinden commented 5 years ago

Similarly to alias (register service for lookup, but no callbacks); there should probably be a way to register a service without exposing it to lookup, but still receiving callbacks.

At that point it'll become evident that there really aren't 3 separate concepts for this one thing, but I also felt that addService which does TWO things (lookup + service lifecycles) is a bit naive. Ah well. 🤔

Zhuinden commented 5 years ago

I don't feel like doing this... at this point it would have made sense to make a register(service, RegisterMode... modes) but that'd mean significant rework that I won't do.

I think this is fine for now.