Musings on web, technology, worklife and more.

  • What are controls and resolvers in WordPress Core Data

    The @wordpress/core-data package can be fairly intimiating. I spent a while a couple of months ago trying to wrap my head around it – especially the way side effects are managed via controls (and the accompanying concept of resolvers). Whilst WordPress Core Data is moving away from this model and towards thunks, it’s likely the … Continued

  • Setting default WordPress Editor Block Templates via PHP from Block Grammar

    Update: after some research it appears it is not currently possible to use block grammar in the template of a post. Therefore the contents of this post should be treated as experimental and will not work in production. Hopefully in the future we can update Gutenberg to support the suggested approach. WordPress allows you to … Continued

  • Mocking @wordpress/api-fetch in Gutenberg unit tests

    Learn how to easily mock out and control `@wordpress/api-fetch` in your unit tests,

  • Testing the Gutenberg Widgets Editor for WordPress 5.8

    WordPress 5.8 promises to bring an overhauled, block-based Widgets screen to WP Admin. I decided to give it a spin by following the recent call for testing instructions. Here’s what I found.