HenrikJoreteg / redux-bundler

Compose a Redux store out of smaller bundles of functionality.
https://reduxbundler.com
583 stars 46 forks source link

createAsyncResourceBundle selectors use names instead of references #37

Closed aaronmccall closed 6 years ago

aaronmccall commented 6 years ago

This allows much more flexibility for bundle composition.

HenrikJoreteg commented 6 years ago

hey @aaronmccall! :)

Sorry, I'm feeling a little daft here... what does this let you do that you can't currently?

aaronmccall commented 6 years ago

Hey Henrik!

My primary use case is when I have a slice of state for a thing, recipes, say, and I want to use createAsyncResource bundle for managing a searchable, sortable, filterable list of recipes inside that slice of state. So, my path would be state.recipes.list for that async bundle.

The current implementation doesn’t allow me to redefine the path that the root selector pulls its state slice from, so I end up with state.recipes AND state.recipeList.

Does that make sense?

On Sep 18, 2018, at 21:29, Henrik Joreteg notifications@github.com wrote:

hey @aaronmccall! :)

Sorry, I'm feeling a little daft here... what does this let you do that you can't currently?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

HenrikJoreteg commented 6 years ago

@aaronmccall just merged and released as part of 22.2.0, thanks!