feathersjs-ecosystem / feathers-redux

Integrate Feathers with your Redux store
MIT License
114 stars 23 forks source link

Feature Request: Reusing services for mutliple redux variables #53

Open testless opened 6 years ago

testless commented 6 years ago

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

testless commented 6 years ago

However, this will be a breaking change.

testless commented 6 years ago

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'] }

eddyystop commented 6 years ago

I will have to think on this.

I understand the issue and would prefer a more baked-in solution.

frinzekt commented 3 years ago

What's the verdict on this, because it seems a good solution?