Skip to content

Components: Rename PolymorphicComponent type to WordPress Component #34291

@ciampo

Description

@ciampo

Required by #33960

Why

The PolymorphicComponent type name can be confusing (and refers to an implementation detail, components polymorphism). WordPressComponent is a better name.

What

We should refactor all of the references to PolymorphicComponent* types (defined in https://github.com/WordPress/gutenberg/blob/trunk/packages/components/src/ui/context/polymorphic-component.ts) and rename them to WordPressComponent*

A/C

  • Rename all instances of PolymorphicComponent* types to WordPressComponent*
  • Potentially add a changelog entry

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions