Hello š I've defined an event as follows in a re-frame app
(re-frame/reg-event-fx
::fetch-ona
(fn [{:keys [db]}]
(js/console.log "test")
{:db (assoc-in db [:dataview-charts :saved-charts-loading?] true),
:http-xhrio
{:method :get,
:uri "",
:format (ajax/json-request-format),
:response-format (ajax/json-response-format {:keywords? true}),
:on-success [::successful-fetch-saved-charts-response],
:on-failure [::failed-fetch-saved-charts-response]}})) For some reason when I dispatch this event, the HTTP request isn't made
I'm not sure what I'm missing..
nvm, I found that I didn't add a require for [day8.re-frame.http-fx] facepalm
Did you get any warnings about missing an effect handler for that? Iād think so, but I forget.
I might not have seen them if there were any