Skip to content

Goodbye lodash#100

Merged
rokotyan merged 5 commits into
mainfrom
feature/goodbye-lodash
Feb 22, 2023
Merged

Goodbye lodash#100
rokotyan merged 5 commits into
mainfrom
feature/goodbye-lodash

Conversation

@rokotyan

Copy link
Copy Markdown
Contributor

This PR replaces lodash with our own functions and uses throttle from the throttle-debounce package, saving the users about 90KB in the final app bundle.

Before

Screen Shot 2023-01-13 at 1 11 25 PM

After

Screen Shot 2023-01-13 at 1 08 46 PM

@rokotyan rokotyan added the enhancement New feature or request label Jan 13, 2023
@rokotyan rokotyan added this to the Release v1.1.0 milestone Jan 13, 2023
@rokotyan rokotyan requested a review from reb-dev January 13, 2023 21:21
@rokotyan rokotyan self-assigned this Jan 13, 2023
@rokotyan rokotyan marked this pull request as draft January 13, 2023 21:21
@rokotyan rokotyan force-pushed the feature/goodbye-lodash branch from 28668b3 to c7d1fb3 Compare January 13, 2023 21:24
Comment thread packages/ts/package.json Outdated
@@ -61,6 +61,7 @@
"@types/lodash-es": "^4.17.6",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we remove this too?

@reb-dev

reb-dev commented Jan 19, 2023

Copy link
Copy Markdown
Contributor

We also need to remove the lodash/sample import and all of the references to it in packages/website/docs/networks-and-flows/Graph.mdx. Currently when you try to run the website this page crashes.

@rokotyan rokotyan force-pushed the feature/goodbye-lodash branch from 3993b5f to 734787a Compare January 23, 2023 23:02
@rokotyan

Copy link
Copy Markdown
Contributor Author

@reb-dev Thanks for pointing our the issues! I've just fixed along with a few other thing.

@rokotyan rokotyan force-pushed the feature/goodbye-lodash branch from 734787a to eb21b20 Compare January 23, 2023 23:06
@rokotyan rokotyan marked this pull request as ready for review February 1, 2023 23:24
reb-dev
reb-dev previously approved these changes Feb 2, 2023
@rokotyan rokotyan merged commit dc6556a into main Feb 22, 2023
@rokotyan rokotyan linked an issue Mar 1, 2023 that may be closed by this pull request
@rokotyan rokotyan mentioned this pull request Apr 19, 2023
@rokotyan rokotyan deleted the feature/goodbye-lodash branch May 22, 2023 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dependencies: Get rid of lodash

2 participants