Skip to main content

Data fetching

The main purpose of this module is to expose an Algebraic Data Type (ADT) to manage the response of HTTP calls.

We don't consider safe design, like the following one:

const { data, error } = fetch('/api/user')

Deep dive

If you want to deepen the topic, here are some useful resources: