Remove function export wrappers #15498
Labels
planning: umbrella
Umbrella issues, surfaced in Projects views
role: dev 🤖
type: enhancement 💡
type: infrastructure 🤖
Issues relating to devops, tech debt, etc.
version: 12
Issues pertaining to a future major release of Carbon
As part of v11, many components were upgraded from class components to function components, #9712.
When v11 was close to being released, there were a handful of components that were not upgraded and instead a
createClassWrapper
helper was added that would wrap these components with a functional export - #10281.The problem
One downside with this approach is that users can no longer place a ref on these components (example). One workaround is to bypass the functional wrapper by importing the root class-based component. For example:
The solution
The remaining components using
createClassWrapper
need to be refactored to be functional components. This technically is a breaking change. We could place these changes behind a feature flag(s) to avoid the breaking change until our next major (v12)Tasks
The text was updated successfully, but these errors were encountered: