T3 real-time / offline

I have a t3 app i made a PWA. I would like to integrate some offline first functionality but there are very few resources regarding this matter that are not - rudimentary dives into indexdb with no sync with your db - graphql solutions (aws amplify / data store , rxdb, couchdb ) Is there a way to support offline first with good database synchronization with t3 stack code base ? I enjoy the stack and would prefer to keep it vs going to a gql alternative
2 Replies
Patrick
Patrick11mo ago
This has been my struggle as well. I haven't been in T3, but plain Next.js. And I have also looked into using Remix. I don't think SSR plays nice with offline first. Almost everything I have read or heard, and my own experience speaks to this, if you want offline first, just go to Vite and react-router and there are PWA packages that will get you there out of the box.
lanc3
lanc311mo ago
GraphQL solutions are just a wrappersfor cache/local storage and some global state management. In general, this is feasible with your preference of global state management but you'll probably have to do all the boilerplate. GraphQL clients like Apollo already do this for you. I will say for the T3 stack specifically, this sort of offline first functionality is not feasible with the app router
Want results from more Discord servers?
Add your server