Consolidate common utils functions across the repo #54407
Labels
[Type] Code Quality
Issues or PRs that relate to code quality
[Type] Task
Issues or PRs that have been broken down into an individual action to take
What?
There are several common util functions, that are repeated across the repo that could, and probably should be consolidated.
One example of this is the functions that previously were imported from
lodash
package.Why?
To avoid code repetition, reduce the bundle size, and reduce the potential error surface.
To optimize the bundle size,
lodash
was removed from Gutenberg but no alternative was provided for functions like_.get()
or_.set()
. For that reason, we have similar functions (example: search forgetNestedValue()
orsetNestedValue()
) across the repo that could be consolidated in one package that can be imported and reused by other modules.More context
See this comment as example: #54161 (comment)
The text was updated successfully, but these errors were encountered: