`thunk` type annotations are incorrect
Gozala opened this issue · comments
Irakli Gozalishvili commented
We assumed that thunk
could take functions that return any kind of Virtual Element. Turns out it needs to be a Node
as neither ThunkNode
nor TextNode
are supported.
Type annotations should reflect that so type checker could catch those errors.
Irakli Gozalishvili commented
For details see browserhtml/browserhtml#1102
Irakli Gozalishvili commented
Closing in favor of mozilla/reflex-virtual-dom-driver#10