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

SolidJS #147

Open
Blankeos opened this issue Jul 11, 2024 · 1 comment
Open

SolidJS #147

Blankeos opened this issue Jul 11, 2024 · 1 comment

Comments

@Blankeos
Copy link

Hi! Awesome stuff. I've been pulling my hairs solving local-first. How are you guys seamlessly making this look easy. Any limitations encountered so far? What conflicts can Triplit not handle?

In any case... It would be great to have a Solid adapter for this.
How much work would it take to port an adapter for SolidJS? (If it's not super difficult, I'd love to give it a shot)

@matlin
Copy link
Contributor

matlin commented Jul 11, 2024

Glad to hear you're excited about Triplit!

re: Conflict Limitations: Currently, Triplit treats all attributes as a Last Writer Wins Registers so it can handle most situations that are primarily CRUD. However, there are cases where an app might need more complex resolution strategies that Triplit currently doesn't support. E.g. in the future, you'll be able to directly handle Collaborative Text, Distributed Counters, Reorderable Lists, etc. Some of that is still possible currently just requires more work, like here is an example of doing collaborative text with Triplit.

re: Solid support: I think adding it would be pretty straightforward to be honest, I think you should give it a shot! Since Solid components only run once it should be pretty straightforward to wire up Triplit Subscriptions to a signal if I had to guess. Don't hesitate to ask any questions in our Discord if you want faster collaboration on it!

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

2 participants