paragon icon indicating copy to clipboard operation
paragon copied to clipboard

Consider removing `withDeprecatedProps` HOC

Open viktorrusakov opened this issue 1 year ago • 0 comments

Paragon uses withDeprecatedProps HOC in multiple components to notify users about deprecated props. However, this creates some size overhead for the components where it is used, which may negatively impact consuming applications' bundle size, even though this HOC has no effect in production mode.

### Tasks
- [ ] Consider whether `withDeprecatedProps` HOC is worth keeping in the codebase. Is there a way to remove it from production bundle and use only during the development mode? Alternatively, Is there a way to notify consumers of deprecated props without this HOC?

viktorrusakov avatar Jul 28 '23 07:07 viktorrusakov