Skip to content

Find better location for __experimentalFetchRichUrlData function #32725

@getdave

Description

@getdave

What problem does this address?

In #32658 we created a WP-specific function that abstracts away the logic of fetching rich preview data for a given URL. This function is then added as a block editor setting called __experimentalFetchRichUrlData and then consumed by <LinkControl>.

Currently this function resides directly within the packages/editor/src/components/provider/use-block-editor-settings.js file. I'm not convinced this is the best location.

What is your proposed solution?

I would suggest this would be better suited to live within @wordpress/core-data. That would mean adding another API to core data but I feel it's valid.

@youknowriad I'd value your input on alternative suggestions.

Metadata

Metadata

Assignees

Labels

[Feature] Link EditingLink components (LinkControl, URLInput) and integrations (RichText link formatting)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions