How to persist Redux State after closing and reopening a React application

The default behavior after closing a React behavior or any website for that matter is for the page's local state to be lost. In a Single Page Application framework such as React this could mean you are logged out or certain setting changes are lost. This blog post explains how to persist state using the … Continue reading How to persist Redux State after closing and reopening a React application

What to do if you lose your Mastodon instance’s environment variables file

One of the most important files loaded when running a Mastodon instance is your environment variables file commonly named .env.production. This file includes several secrets that if lost will break your ability to easily migrate your instance (assuming you have a recent files/database backup). This post explains how to recover your instance so you don't … Continue reading What to do if you lose your Mastodon instance’s environment variables file

When to use React’s built-in state management or a state management library

When writing data in React, state must be passed from the top downwards, with methods passed down if you need to change data above a component. This approach can become difficult when you need to pass data several components down, often through components that don’t need them. This post contains my thoughts on state management … Continue reading When to use React’s built-in state management or a state management library