-
Notifications
You must be signed in to change notification settings - Fork 46
[Demo] Optional Sync Supabase Todo App #309
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
feecc05
to
5db9d63
Compare
demos/react-supabase-todolist-optional-sync/src/library/powersync/AppSchema.ts
Show resolved
Hide resolved
demos/react-supabase-todolist-optional-sync/src/library/powersync/AppSchema.ts
Show resolved
Hide resolved
demos/react-supabase-todolist-optional-sync/src/library/powersync/AppSchema.ts
Outdated
Show resolved
Hide resolved
# Conflicts: # pnpm-lock.yaml
This adds a demo project that aims to demonstrate how an app could be built starting from a local-only state and later being "upgraded" to a version that has sync capabilities. It started off as a copy of the existing todo app that was stripped of some of the features. It works off the existing react-supabase-todo demo and the optional-sync demo added to the Dart monorepo here.
The readme has a basic description of how everything works, with diagrams to show how the app switches from the local-only mode to sync mode.
Added tests to the web package to confirm that
updateSchema
works. A refresh schema implementation doesn't seem to be required based on looking at the tests and updating the schema in the demo.