Skip to content

Invalidate entities when new media is uploaded #971

@swissspidy

Description

@swissspidy

How would WordPress/gutenberg#70405 and WordPress/gutenberg#70648 map to this plugin?

There is already some invalidation in place:

onSuccess: ( attachments ) => {
for ( const media of attachments ) {
if ( media.id ) {
void invalidateResolution( 'getMedia', [
media.id,
{ context: 'view' },
] );
}
}

But maybe that's not sufficient?

See WordPress/gutenberg#70648 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions