In remix, readable streams can only be Uh read by one person meaning that if you have a stream and you start to read it Um, it will lock itself or there's a specific word for it. So I ran into the problem where I was trying to Stream the output of my website to the browser But I also wanted to collect the html and save it as a string so that I could cache it for for the next request. How do you get the 100 output of the render like you normally would without streaming but then how do you also stream to the browser at the same time? There's just a little method called t Dot t e and you simply just call dot t and that will
In this Hasty Treat, Scott and Wes explain the what, why, and how of web streaming, and some of the jargon you might encounter with web streams.
Sentry - Sponsor
If you want to know what’s happening with your code, track errors and monitor performance with Sentry. Sentry’s Application Monitoring platform helps developers see performance issues, fix errors faster, and optimize their code health. Cut your time on error resolution from hours to minutes. It works with any language and integrates with dozens of other services. Syntax listeners new to Sentry can get two months for free by visiting Sentry.io and using the coupon code TASTYTREAT during sign up.
Show Notes
Tweet us your tasty treats