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 some write hooks for client, invites, and projects #21

Merged
merged 28 commits into from
Jan 8, 2025

Conversation

achou11
Copy link
Member

@achou11 achou11 commented Jan 6, 2025

Towards #20

List of hooks added in this PR:

  • useSetOwnDeviceInfo()
  • useSetIsArchiveDevice()
  • useAddServerPeer()
  • useCreateProject()
  • useLeaveProject()
  • useImportProjectConfig()
  • useUpdateProjectSettings()
  • useAcceptInvite()
  • useRejectInvite()
  • useSendInvite()
  • useRequestCancelInvite()
  • useCreateBlob()

Other important notes:

  • Haven't introduced any write hooks related to documents yet. Dealing with the generics has made it complicated
  • The documentation for these hooks is very minimal right now. Not sure what the most helpful way of documenting them is. Seems like a more thorough usage guide would be more beneficial than API-only docs.
  • This PR introduces no tests. I have a separate branch that I started before this that was building out the tests. Hoping to continue things there with these initial write hooks merged in.

@achou11 achou11 merged commit 622e278 into main Jan 8, 2025
3 checks passed
@achou11 achou11 deleted the ac/write-hooks branch January 8, 2025 19:40
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.

1 participant