Epic Web Conf regular tickets are available now!

Prices go up soon

Join the community and network with other great web devs.

Time's up. The sale is over
Illustration of a microphone

Calls with Kent C. Dodds.

You call, I'll answer.

Listen to the podcasts here
Phone sitting on a stool

What's this all about?

The goal of the Call Kent Podcast is to get my answers to your questions. You record your brief question (120 seconds or less) right from your browser. Then I listen to it later and give my response, and through the magic of technology (ffmpeg), our question and answer are stitched together and published to the podcast feed.

I look forward to hearing from you!

Record your call

Calls with Kent C. Dodds Season 4 — 37 episodes

32.Toasts in Remix
06:38
Keywords

remix, toasts, progressive

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
32.Toasts in Remix
06:38
Keywords

remix, toasts, progressive

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
32.Toasts in Remix
06:38
Keywords

remix, toasts, progressive

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
32.Toasts in Remix
06:38
Keywords

remix, toasts, progressive

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

Looking for more content?

Have a look at these articles.

See the full blog