Open
Description
I think we should update the docs to include an example of how one might use the paramsForServer
as a hook.
const paramsForServerHook = (...whitelist) => (context) => {
context.params = paramsForServer(context.params, ...whitelist);
return context;
};
I am not a fan of having to use the paramsForServer
on every service call and would rather have it work more generically via a client side hook.
I can update the docs at some point, but wanted to capture my solution.
Metadata
Metadata
Assignees
Labels
No labels