September 11, 2019
🕒 1 minute, 3 seconds
It's quite a common pattern to initialise a component in a created() or mounted() hook. The problem is that these hooks will execute every time a component is mounted as part of the tests and it may not be what you want.
May 07, 2019
🕒 1 minute, 59 seconds
Expo comes with an Audio API that provides basic sound playback and recording capabilities in React Native projects. It includes a lot of useful features, but at times can be tricky to work with because of its asynchronous nature. I collected a few bits of information that can help with setting up and playing audio in Expo. 🎛️
January 24, 2019
🕒 2 minutes, 33 seconds
This post collects a few notes on how to mock asynchronous API calls when testing Vue components.
January 02, 2019
🕒 1 minute, 1 second
Portals provide a way to render content into a DOM node that exists outside the hierarchy of the Vue component that creates the portal. The concept of portals also exists in React. When the need arises I rely on the portal-vue library to create portals, which provides a really clean syntax.
December 21, 2018
🕒 2 minutes, 14 seconds
Let's take a hypothetical JSON object that holds various pieces of data and describes a request for currency conversion. Then let's explore how JSON Schema can help with the validation of its structure.