Skip to content

Commit

Permalink
Lock all interactive block stores (#58722)
Browse files Browse the repository at this point in the history
  • Loading branch information
DAreRodz committed Feb 6, 2024
1 parent 2bd811a commit 5907e03
Show file tree
Hide file tree
Showing 5 changed files with 566 additions and 528 deletions.
14 changes: 9 additions & 5 deletions packages/block-library/src/file/view.js
Expand Up @@ -7,10 +7,14 @@ import { store } from '@wordpress/interactivity';
*/
import { browserSupportsPdfs } from './utils';

store( 'core/file', {
state: {
get hasPdfPreview() {
return browserSupportsPdfs();
store(
'core/file',
{
state: {
get hasPdfPreview() {
return browserSupportsPdfs();
},
},
},
} );
{ lock: true }
);

1 comment on commit 5907e03

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in 5907e03.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/7807447684
📝 Reported issues:

Please sign in to comment.