Live loading data with remix

15/08/2022 5 min Temporada 2 Episodio 37
Live loading data with remix

Listen "Live loading data with remix"

Episode Synopsis


To live load data when using a framework like Next.JS, I sometimes use swr or react query to do so. Since I am using the loaders in remix to initially load my data, how do I live load this data with remix, do I need to use swr/react-query with perhaps an api endpoint in my remix routes or is there a better way to fetch data from my remix loaders.remix-sse-live-viewersLive loading data with remix