![]() Chris McCord tells us more about this feature and the problem it's designed to solve in this excellent post.įor the past few years, a question I would often hear from developers interested in LiveView was: "What about large datasets?" Users who needed to display and manage long lists of data had to store that data on the server, or else work with the phx-update="append" feature. LiveView 0.18.16 ships with the new streams functionality for managing large collections of data client-side, without having to store anything in the LiveView socket. When we're done, you'll have exercised the full functionality of streams and you'll understand how they work at a deep level. ![]() Along the way, we'll look at how streams work under the hood. We'll see how streams seamlessly integrate into your existing live views to power interactive and efficient UIs. You can follow along in the open source codebase or skip ahead to play around with the finished product. In this post, we'll build out a LiveView chatroom app with the help of LiveView's new streams feature. Fly.io happens to be a great place to run Phoenix applications. It's a slick and efficient solution that avoids storing all that message data in the LiveView. Sophie DeBenedetto walks us through creating our own Slack-like chat interface which features infinite scroll back, editing past messages, deleting messages, and appending new messages to the bottom all using Streams. Streams are an exciting new feature in Phoenix. 20 min Share this post on Twitter Share this post on Hacker News Share this post on Reddit Building a Chat App With LiveView Streams Author Name Sophie DeBenedetto Social Media View Twitter Profile Image by Annie Ruygt.
0 Comments
Leave a Reply. |