You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# workaroundimport karax / [kbase, vdom, kdom, karax, karaxdsl]
import js/jsffi
var elem = document.createTextNode("hello world")
let elem2 = elem.cloneNode(false)
proccreateDom(): VNode=result=buildHtml(tdiv):
dthunk(elem)
# dthunk(elem) # would give errordthunk(elem2) # workswhenisMainModule:
setRenderer createDom, "ROOT"
but maybe karax could provide a better error msg in this case, pointing to the 2 usages of the same Node; so leaving this issue open as low priority
timotheecour
changed the title
reusing dthunk gives AssertionError: same(kxi.currentTree, document.getElementById(kxi.rootId))
[low priority] give more informative error msg when reusing dthunk
Sep 30, 2019
D20190929T173159
reduced example:
gives:
Uncaught Error: Error: unhandled exception: /Users/timothee/git_clone/nim/karax/karax/karax.nim(649, 12)
same(kxi.currentTree, document.getElementById(kxi.rootId))
[AssertionError](same error as #86 but seems unrelated)
The text was updated successfully, but these errors were encountered: