Closed martinklepsch closed 2 years ago
Would you submit a PR?
i'd like to but my macro-fu isn't quite strong enough to add ^js
to ~context
. With the obvious approach of (.-Provider ^js ~context)
I got compiler errors that ^js
isn't a thing in Clojure.
I could try to create a PR that adds a repro to an existing example maybe 🤔
The infer warning seems to come out of the internals of
bind-context
and how it retrieves theProvider
property. I'm not entirely sure but maybe this could be fixed by adding a^js
type hint to the~context
var below?https://github.com/tonsky/rum/blob/9feb2a1781e3ef716361f9788150a01ea7f791b6/src/rum/core.clj#L361-L370