Skip to content

simplify API, and drop non-finegrained representations #3

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

Merged
merged 12 commits into from
Jan 30, 2025
Merged

simplify API, and drop non-finegrained representations #3

merged 12 commits into from
Jan 30, 2025

Conversation

chee
Copy link
Owner

@chee chee commented Jan 30, 2025

i've added a bunch of new tests, and rewritten everything else. some of this owes a lot to @bigmistqke's PR at #2.

makeDocumentProjection -> take a handle, return a live fine-grained doc view
createDocumentProjection -> take an accessor of a handle, return an accessor of a live fine-grained doc view (reactive input)
useHandle -> take an automerge URL, return a Resource for a ready DocHandle
useDocument -> take an automerge URL, return a [doc(), handle()]

and then there's the repo context.

@chee chee merged commit ffea107 into main Jan 30, 2025
3 checks passed
@chee chee deleted the beta8 branch January 30, 2025 23:42
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