Open testless opened 6 years ago
However, this will be a breaking change.
Ok, I thought about it a little bit and found a better non-breaking proposition.
User of your library could now use { '/users/:slug': ['myUser', 'currentlySelectedUser', 'myBoss'] }
I will have to think on this.
I understand the issue and would prefer a more baked-in solution.
What's the verdict on this, because it seems a good solution?
Summary
At the moment, is it only possible to use a service once.
But there might be situations, where you want the same services being stored in different variables. At the moment, the code assume serviceName => variableName, thus providing a way of renaming the serviceName only. My proposal here is to variableName => serviceName, which would allow something like.
myUser -> users currentlySelectedUser -> users myBoss -> users
No
No