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

dumdom.inflate/render fails when called multiple times #45

Open
2food opened this issue Jul 20, 2023 · 0 comments
Open

dumdom.inflate/render fails when called multiple times #45

2food opened this issue Jul 20, 2023 · 0 comments

Comments

@2food
Copy link

2food commented Jul 20, 2023

The readme states that after an initial inflate you can "[...] either call dumdom.inflate/render again, or use dumdom.core/render.".
dumdom.inflate/render renders on first call, but subsequent calls fail with "TypeError: Cannot read properties of undefined (reading 'nodeType')"

react_devtools_backend_compact.js:13096 Failed to load anteo/frontend/entrypoints/unstaffed_pickup.cljs TypeError: Cannot read properties of undefined (reading 'nodeType')
    at isDocumentFragment (module$node_modules$snabbdom$build$htmldomapi.js:1:344)
    at Object.insertBefore (module$node_modules$snabbdom$build$htmldomapi.js:3:363)
    at eval (module$node_modules$snabbdom$build$init.js:16:361)
    at Object.dumdom$inflate$render [as render] (dumdom.inflate.js:80:155)
    at eval (anteo.frontend.entrypoints.unstaffed_pickup.js:3:16)
    at eval (<anonymous>)
    at goog.globalEval (main.js:481:11)
    at Object.shadow$cljs$devtools$client$browser$script_eval [as script_eval] (shadow.cljs.devtools.client.browser.js:45:13)
    at Object.shadow$cljs$devtools$client$browser$do_js_load [as do_js_load] (shadow.cljs.devtools.client.browser.js:115:41)
    at eval (shadow.cljs.devtools.client.browser.js:150:44)

However, calling dumdom.core/render works after an initial dumdom.inflate/render.

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