Discover this podcast and so much more

Podcasts are free to enjoy without a subscription. We also offer ebooks, audiobooks, and so much more for just $11.99/month.

Toasts in Remix

Toasts in Remix

FromThe Call Kent Podcast


Toasts in Remix

FromThe Call Kent Podcast

ratings:
Length:
7 minutes
Released:
Jan 16, 2024
Format:
Podcast episode

Description

Hi Kent,
It's Jan.
I'm currently working on implementing toasts in a Remix app. I was using the Epic Stack as a reference.
BTW, thank you for creating it, it's so nice to take some features and functionalities from it when you need them!
Anyways, it looks like the implementation of the toast in the Epic Stack does NOT work with JavaScript disabled. But theoretically, you could make toasts in Remix progressively enhanced by giving the close button a form and prevent default when JavaScript is enabled.
It looks like the library you're using in the Epic Stack - Sonner - does NOT expose the close button, so you can't progressively enhance it.
Was it a conscious decision to make the toast JavaScript only? Or let me ask the decision more openly, what are your thoughts on this?
As always,
thanks a ton!

Toasts in Remix
Released:
Jan 16, 2024
Format:
Podcast episode

Titles in the series (100)

The Call Kent podcast is a regular podcast where you call in with a question and Kent answers. Call in with your questions right from your web browser with any device at https://kentcdodds.com/call