[solid-js/html] <Show>
inside html
causes TypeError: Cannot read properties of undefined (reading 'keyed')
#2032
Labels
alternative templating
Related to non-JSX template engines
Describe the bug
An
html
template containing this:causes a runtime error:
Your Example Website or App
https://playground.solidjs.com/anonymous/34160a2f-caf1-4230-98dd-eb6f10500fb4
Steps to Reproduce the Bug or Issue
Expected behavior
For
Show
to work.Screenshots or Videos
No response
Platform
Additional context
In
solid-js/web
, in theinsert
function,accessor()
is being called without arguments.accessor
happens to be a reference to theShow
function.The
Show
function tried to read properties from aprops
argument:Workaround
For now, use a ternary instead (which opts out of any optimizations, use
createMemo
to optimize):The text was updated successfully, but these errors were encountered: