6 ms·
parse json? const x = await fetch(...); await x.json(); "intercept" code that runs before every request? const withAuth = (res, options) => fetch(res, { ...
by schindlabua 6mo ago
parse json?
const x = await fetch(...);
await x.json();
"intercept" code that runs before every request?
const withAuth = (res, options) => fetch(res, { ... do stuff here });