hyperfiddle

telekid 2025-11-11T15:36:11.120499Z

I wan't to call a missionary flow with an argument within an electric function, but can't quite remember how. (It's been a while.) Something like:

(e/defn Component []
  (let [device-name (atom nil)
        >device-name (e/watch device-name)
        >device-info (e/input (device-info-for >device-name)]
    ...))
Where device-info-for takes a flow and returns a flow.

xificurC 2025-11-11T15:50:57.700249Z

it's a bit atypical setup, usually interop fns like device-info-for are normal clojure functions, or if they return a flow they take values, not other missionary flows, which is probably why you're struggling. Untested

telekid 2025-11-11T20:53:30.583819Z

That worked great, thanks!