This repository has been archived by the owner on Sep 10, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Package size concern over fbjs #742
Closed
oliviertassinari opened this issue
Sep 24, 2018
· 4 comments
· Fixed by #744 or pulkitkkr/recompose#1
Closed
Package size concern over fbjs #742
oliviertassinari opened this issue
Sep 24, 2018
· 4 comments
· Fixed by #744 or pulkitkkr/recompose#1
Comments
Thanks for analyzing! I’d like to change it if there is a good alternative. |
Copy and paste, it's a trivial module |
shysteph
added a commit
to shysteph/recompose
that referenced
this issue
Oct 1, 2018
Fix acdlite#742 using solution from @gaearon (copy/paste)
Merged
shysteph
added a commit
to shysteph/recompose
that referenced
this issue
Oct 1, 2018
Fix acdlite#742 using solution from @gaearon (copy/paste)
istarkov
pushed a commit
that referenced
this issue
Oct 1, 2018
Is there any plan for a release containing these changes? Cheers! |
I have personally removed this dependency from all my packages. Hooks should be enough now. |
pulkitkkr
added a commit
to shakacode/recompose
that referenced
this issue
Nov 9, 2020
Fix acdlite#742 using solution from @gaearon (copy/paste)
pulkitkkr
added a commit
to shakacode/recompose
that referenced
this issue
Nov 9, 2020
* Remove fbjs dependency Fix acdlite#742 using solution from @gaearon (copy/paste) * Compile Recompose Co-authored-by: Stephanie Miller <smiller@generalcode.com>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
A picture worth a thousand words 2.74M is a lot (I'm trying to reduce Material-UI footprint):
https://packagephobia.now.sh/result?p=recompose
Most of this bytes seem to be coming from https://packagephobia.now.sh/result?p=fbjs.
recompose/src/packages/recompose/shallowEqual.js
Line 1 in 7d5adf7
I understand why it was added in the first place, to match React internals, but they have recently removed the fbjs dependency: facebook/react#13046.
What do you think of using a lighter alternative?
@gaearon By any chance, do you have an advice for the replacement of shallow equal? Thanks!
The text was updated successfully, but these errors were encountered: