Skip to content

Slow updateBlockAttributes on Safari  #29370

@jegbagus

Description

@jegbagus

Description

Very slow updateBlockAttributes on Safari 14.0.3 (macOs big sur)

Step-by-step reproduction instructions

  1. loop child block from parent.
  2. do updateBlockAttributes of child attribute from parent.

Expected behaviour

updateBlockAttributes should be happened instantly. this kind of behavior not happen on other browser (firefox, google chrome, microsoft edge)

Actual behaviour

very slow update when updateBlockAttributes executed on safari.

Screenshots or screen recording (optional)

https://share.getcloudapp.com/RBu4rXDn

Code snippet (optional)

useEffect(() => {
        if (isSelected) {
            const rootId = getBlockRootClientId(clientId);
            const childs = getBlocks(rootId);

            childs.map(child => {
                if (child.clientId !== clientId) {
                    updateBlockAttributes(child.clientId, { active: false });
                }
            });

            setAttributes({ active: true });
        }
    }, [isSelected]);

WordPress information

  • WordPress version: 5.6.2
  • Gutenberg version: 10.0.1
  • Are all plugins except Gutenberg deactivated? No
  • Are you using a default theme (e.g. Twenty Twenty-One)? Yes

Device information

  • Device: iMac
  • Operating system: macOs Big Sur
  • Browser: Safari 14.0.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    Browser IssuesIssues or PRs that are related to browser specific problemsNeeds TestingNeeds further testing to be confirmed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions