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

support different backend than snabbdom #228

Open
cornerman opened this issue Sep 7, 2018 · 0 comments
Open

support different backend than snabbdom #228

cornerman opened this issue Sep 7, 2018 · 0 comments

Comments

@cornerman
Copy link
Member

cornerman commented Sep 7, 2018

We have a VTree consisting of multiple VDomModifier, this is currently translated into a snabbdom proxy, on which we call patch whenever an observable triggers.

We could make outwatch independent of the backend. So you can have our modifier definitions and handling of observables, but can chose between different backends. One backend would be snabbdom, it takes the modifiers, transforms them into VNodeProxy and sends them to snabbdom. A different backend could work without a VDom and just change the dom on each update.

This would require us to abstract over the snabbdom events like onInsert, onDestroy, etc. They do not do what the user expects anyway, so I think we can refactor this part of the API.

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