-
Notifications
You must be signed in to change notification settings - Fork 31
Copy injector code from rbp and expose api #1
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
Conversation
…ts for `reducerInjectors`, misc.
3f4e31c to
b43f889
Compare
|
Hey @BenLorantfy fyi we've basically copy-pasted this code into a large monorepo setup and have validated that at least the raw Anything you need to help get this over the line? |
|
Just waiting for a review |
|
@justingreenberg @julienben @Gretzky Does anyone have a chance to review this? |
julienben
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the delay! Here are some thoughts/comments.
vineyardbovines
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have all the same comments as @julienben
vineyardbovines
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(left one extra comment)
julienben
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your diligence! Excited to see this come to fruition!
In this PR:
createInjectorsEnhancer(new),injectSaga,useInjectSaga,injectReducer,useInjectReducer,forceReducerReload(new),SagaInjectionModespackage-lock.jsonfile. (This is where most of the "lines added" is coming from)Still left TODO (In subsequent PRs):
If I should do any of the above in this PR let me know, I just thought to keep this PR small-ish I would do these in subsequent ones.
A few other notes:
Pinning Dependencies in
package.jsonI don't know if this is a good idea for a library. I've been working recently on reducing my webpack bundle size, and I've noticed that pinned dependencies are more prone to being duplicated.
For example, if I pin "lodash" to
4.17.15and a consumer of this library has a "lodash" version of^4.20.0, this will cause two versions of "lodash" to be present in the bundle. If I had however specified^4.17.15, then one version would be present in the bundle.checkStore
This has been removed from the API.