<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/kill-the-loading-spinner-with-local-first-data-and-reactive-sql-7pcxi8gf1" -->

---
title: Kill the loading spinner with local-first data and...
description: Local-first web architecture combines in-browser SQLite (via WebAssembly), reactive SQL queries, and a background sync engine to eliminate loading spinners and...
canonical: https://daily.dev/posts/kill-the-loading-spinner-with-local-first-data-and-reactive-sql-7pcxi8gf1
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Kill the loading spinner with local-first data and reactive SQL | daily.dev
og:description: Local-first web architecture combines in-browser SQLite (via WebAssembly), reactive SQL queries, and a background sync engine to eliminate loading spinners and...
og:url: https://daily.dev/posts/kill-the-loading-spinner-with-local-first-data-and-reactive-sql-7pcxi8gf1
og:image: https://api.daily.dev/og/posts/7PcXi8gF1.png
og:image:alt: Kill the loading spinner with local-first data and reactive SQL
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Kill the loading spinner with local-first data and reactive SQL

**[InfoWorld](https://daily.dev/sources/infoworld)** · 11 min read · 7 upvotes · 0 comments

## Summary

Local-first web architecture combines in-browser SQLite (via WebAssembly), reactive SQL queries, and a background sync engine to eliminate loading spinners and network latency. Using React, PowerSync, and Supabase, this hands-on walkthrough shows how to set up a cloud database with row-level security, configure sync rules that shape per-user data, and wire up a React frontend where writes go directly to local SQLite and sync asynchronously to the cloud. The reactive `useQuery` hook replaces `useEffect`+`fetch` patterns, and writes complete in milliseconds without awaiting server responses. The tradeoff: more upfront schema and sync configuration in exchange for native-feeling, offline-capable apps.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.infoworld.com/article/4168581/kill-the-loading-spinner-with-local-first-data-and-reactive-sql.html>

## Similar posts on daily.dev

- [Offline-first frontend apps in 2025: IndexedDB and SQLite in the browser and beyond](https://daily.dev/posts/offline-first-frontend-apps-in-2025-indexeddb-and-sqlite-in-the-browser-and-beyond-djyieqljy) · LogRocket · 1 upvotes · 0 comments
- [The browser is your database: Local-first comes of age](https://daily.dev/posts/the-browser-is-your-database-local-first-comes-of-age-qpvygfxu9) · InfoWorld · 4 upvotes · 0 comments
- [Why We Picked Flutter Over React Native for an App That Had to Work Offline](https://daily.dev/posts/why-we-picked-flutter-over-react-native-for-an-app-that-had-to-work-offline-gvf1othfr) · Medium · 1 upvotes · 0 comments
- [The Architecture Of Local-First Web Development — Smashing Magazine](https://daily.dev/posts/the-architecture-of-local-first-web-development-smashing-magazine-fi6dhffcw) · Smashing Magazine · 6 upvotes · 1 comments

---

Tags: [#local-first](https://daily.dev/tags/local-first), [#react](https://daily.dev/tags/react), [#sqlite](https://daily.dev/tags/sqlite), [#supabase](https://daily.dev/tags/supabase)

[View this post on daily.dev](https://daily.dev/posts/kill-the-loading-spinner-with-local-first-data-and-reactive-sql-7pcxi8gf1)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Kill the loading spinner with local-first data and reactive SQL","url":"https://daily.dev/posts/kill-the-loading-spinner-with-local-first-data-and-reactive-sql-7pcxi8gf1","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/kill-the-loading-spinner-with-local-first-data-and-reactive-sql-7pcxi8gf1"},"datePublished":"2026-05-12T09:06:41.002Z","dateModified":"2026-05-14T02:13:19.493Z","description":"Local-first web architecture combines in-browser SQLite (via WebAssembly), reactive SQL queries, and a background sync engine to eliminate loading spinners and...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/7ee39900cd236bdb8d510843ba163d8e?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/7ee39900cd236bdb8d510843ba163d8e?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"InfoWorld","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"InfoWorld","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/bf6d68a999064029b0bb09aa6268f1f3","url":"https://daily.dev/sources/infoworld"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/kill-the-loading-spinner-with-local-first-data-and-reactive-sql-7pcxi8gf1","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":7},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"local-first,react,sqlite,supabase","timeRequired":"PT11M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"InfoWorld","item":"https://daily.dev/sources/infoworld"},{"@type":"ListItem","position":3,"name":"Kill the loading spinner with local-first data and reactive SQL"}]}
```

