PLAY PODCASTS
Toasts in Remix
Season 4 · Episode 32

Toasts in Remix

Jan asked this on 2024-01-16

The Call Kent Podcast

January 16, 20246m 38s

Audio is streamed directly from the publisher (media.transistor.fm) as published in their RSS feed. Play Podcasts does not host this file. Rights-holders can request removal through the copyright & takedown page.

Show Notes

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

Topics

remixtoastsprogressive enhancement