clojurescript

Ryan 2025-11-15T17:46:04.711329Z

I’m having some trouble calling js functions attached to react refs.

(.setExpandedKeys @!tree-ref (js->clj (.. % -value))
(where tree-ref is set via
[:> Tree {:ref #(reset! !tree-ref %)}]

Ryan 2025-11-15T17:46:37.204639Z

What I get is: Cannot infer target type in expression

borkdude 2025-11-15T18:50:42.204449Z

Is that just a warning? Then you may just add a ^js type hint to it

Ryan 2025-11-15T19:07:35.362969Z

Aha, I’ll try that