PowerSync @powersync.com · Dec 1

When building online web apps with sync, you can sync data as needed rather than syncing everything upfront. For the initial UI state, you can sync the minimum data needed. Here's an example using our new Sync Streams (currently in early alpha) 1) Define the Sync Stream:

0 likes 1 replies

?

Replies

PowerSync · Dec 1

2) Subscribe to the Sync Streams from the client app 3) Use waitForFirstSync() to ensure data is locally available React useQuery example follows below...