This is an interesting test case that both validated neverland works pretty much exactly as React, but it also shows an easy to get into issue, when hooks are used within a callback that wouldn't return a lighterhtmlHole instance.
There are two possibilities I see here:
emphases on the fact neverland wrapper should be used only for callbacks that return HTML/SVG elements
avoid wrapping into "holes" things that are not supposed to land on the dom, and yet use hooks
This is neither blocking nor likely easy to solve, hence I'd like to park it in here until the day I figure out if option 2, fallback-ing to 1, would be possible.
This is an interesting test case that both validated neverland works pretty much exactly as React, but it also shows an easy to get into issue, when hooks are used within a callback that wouldn't return a lighterhtml
Hole
instance.There are two possibilities I see here:
This is neither blocking nor likely easy to solve, hence I'd like to park it in here until the day I figure out if option 2, fallback-ing to 1, would be possible.