Often with any sort of state in a given application, there can be times in an application’s lifecycle where you want to be able to execute some sort of logic as a part of the flow in setting state or updating state. A good example of this is asynchronous data flows between the client and […]
The job of selectors is to provide an interface to access state from the registered data store. With wp.data this is the primary way that your store state is exposed and allows you to encapsulate logic surrounding exposing that data. For instance, let’s say you just want to store all products in the store state […]
It’s been a while since I’ve written one of these year end, year beginning posts, but this is a significant year as the 2010’s draw to a close and the 2020’s have begun. So I figured it be a good exercise to reflect and predict. Let’s start with reflect: Reflect I’m going to group things […]
An introduction to the useDispatch and useSelect hooks exposed via the wp.data api of the new WordPress editor.
(Edit October 10, 2018) Note: This article is now out of date but is kept published for reference purposes. Nearly everything in Gutenberg is published as a package so for the purpose of testing you can include those packages as a devDependency in your package.json file and jest will know to reference those in tests. As a […]
This is a post that has been percolating as a draft post for nearly two or three months now. But as a theme, its something I’ve wrestled with far longer. Those who know me well, know that at my core, I’m kind of a systems and strategy kind of guy. What makes gets my ticker picking […]
A few months ago, one of the teams I work with went on the hunt for a good continuous integration service for running tests on the code we write. We jumped on the unit test bandwagon at the beginning of the year and wanted to really amp up the quality of our product by having tests […]
Yes, this is one of those “If I was in charge, I’d do this…” posts. Don’t we all have opinions on how companies should be run? Just had these thoughts today so decided to write them down. Canada is known as one of the worst places for mobile phone plans (from a consumer perspective), largely […]