Skip to content
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

feat: introduce initial sync hooks #51

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

achou11
Copy link
Member

@achou11 achou11 commented Feb 19, 2025

Closes #9

Exposes 4 hooks:

  • Read

    • useSyncState(): get calculated "sync state". directly ported from comapeo-mobile
    • useDataSyncProgress(): gets calculated progress of data sync. directly ported from comapeo-mobile
  • Write

    • useStartSync(): enables sync for a project
    • useStopSync(): disables sync for a project

Have the beginnings of some tests but definitely not exhaustive. Open to suggestions on how to approach.

@achou11 achou11 requested a review from gmaclennan February 19, 2025 22:24
@achou11 achou11 force-pushed the 9/sync-state-hook branch 3 times, most recently from 04231b0 to d1a81a4 Compare February 19, 2025 22:28
@achou11 achou11 requested review from ErikSin and removed request for gmaclennan February 20, 2025 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement hooks related to sync state
1 participant