Fork me on GitHub
#fulcro
<
2021-12-18
>
cl_j01:12:29

When throwing exception created with ex-info from server, any easier way to get the error map in client side? I am now reading the error from response body in error-action, it's very verbose

tony.kay04:12:31

You can plug in your own result handler at the global level, or change the response middleware

👍 1
cl_j04:12:42

If my backend resolver requires more than one parameters, for example, ::pc/input #{:s1/id :s2/id} , how should i declare my component in frontend? I could not find the relevant documentation.

cl_j05:12:55

I managed to get the results by including the id in the results from the parent query, {:node/list (mapv (fn [id] {:s2/id id :s1/id s1-id}) (get-list-by-s1-id s1-id))}

Piotr Roterski09:12:20

you could pass additional params during loading by using :pathom/context param:

(df/load! app [:input/a "aaa"] Output {:params {:pathom/context {:input/b "BBB"}}})
https://blog.wsscode.com/pathom/v2/pathom/2.2.0/connect/resolvers.html#_multiple_inputs

👍 1