redux-yjs-bindings
redux-yjs-bindings copied to clipboard
Your plans for this library?
Hi,
I started to dig into yjs last week and was thinking about an integration to redux. Your library inspired me but didn't fulfill my requirements:
- Make only the necessary changes.
- Keep redux instances intact if nothing has been changed.
- Support custom domain object classes.
- Support custom collections.
- Support custom value types (e.g. Color, Vector and so on).
- Detect inserts and removals in arrays.
So I built my own test: https://github.com/SebastianStehle/yjs-test
it is not a library yet, but already fulfills the requirements and has a decent amount of tests to ensure it works as indented. But I think there is no need to have 2 bindings. So I would like to be interested to know about your plans:
- Do you still work with yjs?
- Are you interested to work together?
I would like to have an official redux / react binding. So the goal should be to integrate the project into the yjs organization if @dmonad agrees with that. At the moment I struggle to find a good starter for typescript libs, this is my main blocker at the moment.
EDIT: I converted it to a library: https://github.com/sebastianstehle/yjs-redux
Hey, thanks for the interest! Your solution looks really impressive and seems to be a plain superior version of mine here haha. I don't really work with yjs anymore so as you can see I haven't really touched this library again. As far as I can tell, adding your library to any existing Redux instance should just work, correct? If that's the case and if that is something that you will want to continue, then I think this project here has been superseded. I would likely keep the repo as it is for a while but add a big link to yours. If nothing happens for a while I might archive this repo. What do you think?
Sure, sounds good. I am talking with the guys from y-sweet (https://y-sweet.dev/js/react) to integrate it there, but I still need to fix some bugs. Once it is done I can update you and if you want you can achieve the repo and add a link. Would be great for the community :)