"Remix Live Loader" by Alex Anderson
Like most things in Remix, realtime data comes with the platform! Server-sent Events let us pass messages from the server to connected clients, making it possible for instant updates when any user makes a change. But how can you use this to make sure every route's data is kept fresh? Enter useLiveLoader, a technique to connect Server-sent Events with useLoaderData to always keep your data fresh. With just one hook, we get the same route data loading as useLoaderData with automatic real-time updates. Let's take a peek at what realtime in Remix looks like, and how to build this kind of hook for your own app. Speaker Bio: Alex Anderson is a software engineer at Echobind, a full-service software agency. He's a maker in many mediums, including code, baked goods, games, tech courses, and music. A spaceship enthusiast, Alex created Thorium: an open-source platform for live-action spaceship bridge simulations. He enjoys building games and puzzles with the web. https://remix.run/conf/2023/speakers/alex-anderson