Comment

Comment by richdougherty

Here's a tip for state machines. If you've got a transition that takes some time then you often actually need another state to represent the state that the system is in during the "transition".

This is usually modeled better on backend systems (a state while waiting for a network response to arrive) but is often modeled poorly in front-end systems (a state while waiting for an animation to finish).

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton