react-flow-chart icon indicating copy to clipboard operation
react-flow-chart copied to clipboard

Unoptimized loading of lodash function isEqual

Open unimator opened this issue 4 years ago • 0 comments

According to my knowledge and what people say ( Lodash per method packages, Correct way to import lodash ) loading lodash functions like that:

import { isEqual } from 'lodash'

is not optimal because it will load everything from library at once and can be effectively replaced by:

import isEqual from 'lodash/isEqual'

which sould load only required amount of code to make this function work.

The problem can be found in Port.wrapper.tsx file.

unimator avatar Aug 03 '21 10:08 unimator