From c5e6d834100a504b099f630b1e3409b94f1ec5c3 Mon Sep 17 00:00:00 2001 From: bean1352 Date: Mon, 30 Mar 2026 15:23:48 +0200 Subject: [PATCH 1/2] Added references to new time based sync demo --- intro/examples.mdx | 1 + sync/advanced/sync-data-by-time.mdx | 2 ++ 2 files changed, 3 insertions(+) diff --git a/intro/examples.mdx b/intro/examples.mdx index 05004697..aafb2c66 100644 --- a/intro/examples.mdx +++ b/intro/examples.mdx @@ -93,6 +93,7 @@ All examples are organized by platform and backend technology. You can adapt any - [Yjs CRDT Text Collaboration Demo](https://github.com/powersync-ja/powersync-js/tree/main/demos/yjs-react-supabase-text-collab#readme) - [Vite + React + TS + PowerSync + Supabase](https://github.com/powersync-community/vite-react-ts-powersync-supabase#readme) - [E2EE Chat App](https://github.com/powersync-community/react-supabase-chat-e2ee#readme) - End-to-end encrypted group chat demo + - [Time-Based Sync Demo](https://github.com/powersync-ja/powersync-js/tree/main/demos/react-supabase-time-based-sync) - Time-based sync demo #### Framework Integration Examples diff --git a/sync/advanced/sync-data-by-time.mdx b/sync/advanced/sync-data-by-time.mdx index a3c01296..f30ddb54 100644 --- a/sync/advanced/sync-data-by-time.mdx +++ b/sync/advanced/sync-data-by-time.mdx @@ -133,6 +133,8 @@ Instead of pre-defined ranges, create a bucket for each date and let the client Use `substring` to extract the date portion from a timestamp and match it with `=`: +For a complete working example, see the [PowerSync + Supabase: Time-Based Sync demo](https://github.com/powersync-ja/powersync-js/tree/main/demos/react-supabase-time-based-sync). + ```yaml From 297e7d6af602928b35cf6977ff7ee771664aabf3 Mon Sep 17 00:00:00 2001 From: bean1352 Date: Mon, 30 Mar 2026 15:29:34 +0200 Subject: [PATCH 2/2] Clarify demo description --- intro/examples.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/intro/examples.mdx b/intro/examples.mdx index aafb2c66..810a3744 100644 --- a/intro/examples.mdx +++ b/intro/examples.mdx @@ -93,7 +93,7 @@ All examples are organized by platform and backend technology. You can adapt any - [Yjs CRDT Text Collaboration Demo](https://github.com/powersync-ja/powersync-js/tree/main/demos/yjs-react-supabase-text-collab#readme) - [Vite + React + TS + PowerSync + Supabase](https://github.com/powersync-community/vite-react-ts-powersync-supabase#readme) - [E2EE Chat App](https://github.com/powersync-community/react-supabase-chat-e2ee#readme) - End-to-end encrypted group chat demo - - [Time-Based Sync Demo](https://github.com/powersync-ja/powersync-js/tree/main/demos/react-supabase-time-based-sync) - Time-based sync demo + - [Time-Based Sync Demo](https://github.com/powersync-ja/powersync-js/tree/main/demos/react-supabase-time-based-sync) - Dynamically control which data is synced to the client based on a date #### Framework Integration Examples