Const
Default fetch wrapper using the global Fetch API and JSON/text parsing.
A lazy Fetch API wrapper that resolves to an Either result.
Either
const result = await ffetch('/api/items')()// result is an Either containing the parsed body or a request error Copy
const result = await ffetch('/api/items')()// result is an Either containing the parsed body or a request error
Default fetch wrapper using the global Fetch API and JSON/text parsing.