Ben Dwyer
Ben Dwyer
I found a bug with this. When you have two navigation blocks on the page they will both try to create a classic navigation, and do so successfully.
@draganescu and I created a solution to prevent menus from importing twice. We'd be grateful for a review. We tried creating a store and then saving state of the import...
I believe that is the case
I think it would be better to look at that on a case by case basis.
> One thing that gives me pause is this: how should we address the missing styles for any other block that uses the __experimentalStyles API (at the moment, navigation &...
The problem with `wp_enqueue_scripts` is that it doesn't run in the editor, but I also added an action on `admin_enqueue_scripts` so hopefully that looks ok now?
> In that case, maybe init would be a better fit? It runs both on the front & dashboard, and we're doing it for other scripts/styles as well 👍 I...
I think this needs to go into 6.1. I started a backport here: https://github.com/WordPress/wordpress-develop/pull/3331
@ethanclevenger91 Thanks, that's a great spot. I have a fix over here: https://github.com/WordPress/gutenberg/pull/45063
@andrewserong Thanks for looking into this, your insights are very valuable. I tried a different approach, which again attempts to simplify things. I switched some of the logic which means...