Set the AbortSignal for the fetch request.
You can use this to set a timeout for the request.
The AbortSignal to use for the fetch request
const ac = new AbortController() ac.abort() const { data, error } = await supabase .from('very_big_table') .select() .abortSignal(ac.signal)
const { data, error } = await supabase .from('very_big_table') .select() .abortSignal(AbortSignal.timeout(1000 /* ms */))