comparemela.com


So why don’t we just write SQL in the frontend to begin with?
I’m serious.
To ensure a snappy app, we usually need a normalized cache on the frontend. When we start trying to do optimistic updates is when things get complicated really quickly. Unless our frontend data model maps exactly to our backend model, we have to do a bunch of quirky, manual cache updates. Just check out Apollo’s guide for optimistic UI — its intense! Swr and react-query also leave the manual query invalidation and cache updating to you.
The hard truth is that if we want perfect optimistic UI updates, we are going to need to replicate our backend data model in our frontend. And if we are using an SQL database with relational data, then we should have an SQL database in the frontend. If you can make this work you also get offline support for free.

Related Keywords

Jake Archibald , ,Chrome Extension ,ஜேக் ஆர்க்கிபால்ட் ,குரோம் நீட்டிப்பு ,

© 2025 Vimarsana

comparemela.com © 2020. All Rights Reserved.