Skip to content

Instantly share code, notes, and snippets.

Avatar

Mateusz Burzyński Andarist

View GitHub Profile
View paginationMachine.js
// Copy and paste into https://statecharts.github.io/xstate-viz/
const paginationMachine = Machine(
{
id: "pagination",
initial: "empty",
on: {
UPDATE_PARAMS: "debouncing"
},
onDone: { actions: "hideMoreLoader" },