Join Kent for a live workshop in Goa, India 🇮🇳
Advanced React APIsWhat'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!
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 RemixHi 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 RemixHi 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 RemixHi 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 RemixHave a look at these articles.