This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// XState Brain Teaser 2 - Async Validation | |
// https://www.youtube.com/watch?v=nUKA0xhkZc8 | |
const fetchValidateUserCanSendAmount = () => fetch("/validate-user-can-send-amount") | |
const fetchValidateBankDetails = () => fetch("/validate-bank-details") | |
const validationMachine = Machine({ | |
id: 'validation', | |
initial: 'idle', | |
context: {}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "some-project", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"scrape": "npx tsx ./src/scrape.ts" | |
}, | |
"author": "", | |
"license": "ISC", |
OlderNewer