New answers tagged

1 vote

How to add an additional dependency to a block index.asset.php file

Actually, you do not need to worry about adding the Masonry's script handle to the dependencies array in the asset file (index.asset.php). All you needed to do to make your Masonry code work properly ...
Sally CJ's user avatar
  • 38.8k
0 votes

move useState variable from edit.js to save.js. How do I do that?

I want to move the useState variable selectedValue once it's defined in edit.js and import it into save.js. In edit. js the code looks like this This is impossible and not how save components work. A ...
Tom J Nowell's user avatar
  • 58.8k
1 vote

useSelect() plus resolver result is serving cached data incorrectly

Thanks for MVE, @helgatheviking! It was beneficial. When caches the resolvers, it also considers arguments. Here's what happens when following the reproduction steps for the bug: Selecting ...
Mamaduka's user avatar
  • 4,492

Top 50 recent answers are included