Content pfp
Content
@
0 reply
0 recast
2 reactions

Gabriel Ayuso pfp
Gabriel Ayuso
@gabrielayuso.eth
There's no way an app will be fast enough without keeping most state local. Having a proper sync engine and local state isn't trivial but once it's setup you can reduce a lot of the issues that come with fetching and caching since the sync engine ensures that your app has the data and it's up to date. https://x.com/karrisaarinen/status/1834463400975544778
6 replies
7 recasts
26 reactions

Samuel pfp
Samuel
@samuellhuber.eth
Have you played around with local first sync? one thing I am yet to figure out is how to show the few parts one has 3rd party APIs in a way that's pleasant if the rest is so fast.
1 reply
0 recast
0 reaction

Gabriel Ayuso pfp
Gabriel Ayuso
@gabrielayuso.eth
I've done "local first" on native, not on web yet. It's possible to do local first with 3p APIs you just need to write a custom way to continuously call the APIs and merge the results with the data you have locally. That's basically what I did with Tumblr APIs back in the day. You could also just integrate the 3p API on your backend and not your client, if possible.
2 replies
0 recast
1 reaction