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

Example Proposal: Comments #643

Open
curran opened this issue Feb 25, 2024 · 0 comments
Open

Example Proposal: Comments #643

curran opened this issue Feb 25, 2024 · 0 comments

Comments

@curran
Copy link
Contributor

curran commented Feb 25, 2024

I have an idea for a new example for ShareDB: Comments. This would be a simple interface that lets users add comments to a thread, similar to GitHub Issues.

The goal is to demonstrate how to do the following combination of things with ShareDB, which I have been struggling to do for some time now:

  • Securely allow only certain queries, and deny all others (do not allow the client to execute arbitrary queries)
  • Server-render the first query results
  • Hydrate a Query client-side
  • Ensure the query result set updates when a new comment is added or an existing comment is deleted
  • Ensure each document in the query result set updates (e.g. when a comment is edited)

Would there be interest in adding such an example?

Related:

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

No branches or pull requests

1 participant