Projects / Intermediate

🚦 Make "loading, but also an error" impossible to build

What you end up with

A type that can build exactly the 4 states that mean something, one function, reducer, that is the only thing changing the state, and a test that checks all 16 transitions. And when you add a state, tsc tells you every place that needs fixing.

🔒

Create a free account to read this project

Sign up for a free membership to read every free project. Already have an account? Please sign in.

Other projects

← Back to all projects