2022
⏰ gotta wake up
cheap shot to get your attention 🦑
from next slide until the end
count them
tweet number at me with
#XataVibes
🏆 1st gets cool Xwag 🎁
(he/him)
{...design}
{...design}
✨
click
mutation event
mutation request
response
update content
woohoo!
Don’t
go
chasing
waterfalls
💭 this song is from 1995
click
mutation event
mutation request
response
update content
woohoo!
✅
click
mutation event
mutation request
💥
update content
woohoo!
update content
Pardon. retry?
if your App/API fails often, you probably have a bug
a State Machine can make it easier to control this error/recovery flow
not a silver bullet
🤖
🐛
🔫
when the response is not critical for the user experience
when you trust the availability of the resource
🐶
☀️
🤔
useTransition
useFetcher
useFetchers
useLoaderData
useActionData
useFormAction
useSubmit
🤫
when a page loads
`GET`
requests
⬇️
⚙️
when a data mutates
`POST`
requests
⬆️
⚙️
`PUT`
`DELETE`
`PATCH`
`useLoaderData()`
`useActionData()`
GET form submission
POST / PUT / PATCH / DELETE form submission
from remix
not react
⚠
navigation
idle
idle
loading
idle
idle
submitting
idle
idle
submitting
loading
1️⃣
2️⃣
3️⃣
This hook lets you plug your UI into your actions and loaders without navigating
-- from Remix docs
POST
PUT
DELETE
PATCH
Action
Function
Loader
Function
<Form>
<fetcher.Form>
vs
<form>
vs
#XataVibes