mozilla / reflex

Functional reactive UI library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`thunk` type annotations are incorrect

Gozala opened this issue · comments

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.