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
Root element is replaced #22
Comments
Well this code performs check if container changed import Cycle from '@cycle/core'
import {h, div, makeDOMDriver} from 'cycle-snabbdom'
import Rx from 'rx'
var main = function(sources){
return {
DOM: Rx.Observable.just(1).map(x => div('x=' + x))
}
}
var container = document.getElementById('app')
setTimeout(() => {
console.log('check', container == document.getElementById('app')) // check false
})
Cycle.run(main, {
DOM: makeDOMDriver(container)
}) It shows that Hm, hm got the same result for cycle/dom in this test |
Just tried this |
It's saying they are the same for me |
The problem is actuatual for sync version of |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It seems that root (container) element is being replaced while DOM update. I belive driver should leave it alone (as
@cycle/dom
does)The text was updated successfully, but these errors were encountered: