Find better location for __experimentalFetchRichUrlData
function
#32725
Labels
[Feature] Link Editing
Link components (LinkControl, URLInput) and integrations (RichText link formatting)
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.
The text was updated successfully, but these errors were encountered: