-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
reduxDevtools plugin for namespaced stores #88
Comments
Hey there @erixtekila! You want to do something like this: export default createConnectedStoreAs(
{i18n, urls: manifest.urls},
({i18n, urls}) => ({
i18n: withReduxDevtools(withEffects(i18n)),
urls: withReduxDevtools(withEffects(urls))
})
); I encourage you to use the |
Thanks. Could you elaborate on why |
And also, why What this function do, that export default createConnectedStoreAs
(
{
i18n
, urls : manifest.urls
}
,{ i18n, urls } =>
(
{
i18n : withReduxDevtools(withEffects(i18n)
, urls: withReduxDevtools(withEffects(urls))
}
)
); Namespaced stores are convenient to make there properties reactive. store.get( "i18n.yes" ) where |
|
That API wouldn't be typesafe, unfortunately. |
Thanks @bcherny Your tests seems a good learning path too ! |
So to clarify:
Hope that makes sense :) |
Ah, you confirm what I've found. |
I wonder how it'd be possible to use the devtools with namespaced store.
An error is thrown.
Is it feasible ?
Any other way to compose connected stores ?
The text was updated successfully, but these errors were encountered: