Jurjan-Paul Medema

Results 2 comments of Jurjan-Paul Medema

First impression: to me this looks a bit awkward compared to other re-frame syntax (overloaded `:promise` keyword - for which I don't have a better suggestion either - and why...

I wonder if passing a function that returns a JS promise would mitigate things: ``` (rf/reg-event-fx ::fetch-data (fn [_ [_ params]] {:promise {:fn #(js/fetch "https://api.example.com/data") :then [::fetch-success] :catch [::fetch-error]}})) ```