I’m just learning the Gutenberg editor and I might be wrong, but it seems to me that inside the initialize block function you can only operate on the $block variable. Try this:
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.