Loading video...
Video Failed to Load
I don't know if SQL is bad or not but losing user data in the middle of a workflow certainly is! Did you know you can block React Router navigations in to prevent losing user data? let blocker = useBlocker(shouldBlock) blocker.state blocker.proceed() blocker.reset()
41,500 views • 1 year ago •via X (Twitter)
10 Comments

Navigation Blocking How-To Guide

Is this video on YouTube as well? Videos on X basically undiscoverable, so, would recommend uploading as a “Remix Single” (or whatever the react router equivalent might be called)

there's a guide in the docs now, this video took me like 10 more minutes than writing the guide, posting to youtube and maintaining some kind of channel/expectation there is high friction, so I just post it here hoping other people make more consumable content I guess :P

oops, sorry for the shaky camera, I didn't bother plugging in my real one and used the display, that bounces around as I type 😑

learning something new every day

That's neat!

huge fan of your teaching style!

Wow wish I knew about this when it came out 😅 super cool and will be using asap!

I like the standard web platform nuggets on your videos

Wow, I needed this. Thanks Ryan.

