Returns (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>
The client of the innermost enclosing Fetch context; outside any, the global fetch function
-
- (input: RequestInfo | URL, init?: RequestInit): Promise<Response>
-
Parameters
- input: RequestInfo | URL
Optionalinit: RequestInit
Returns Promise<Response>
Retrieves the shared fetch client.
The client lasts as long as its Fetch context, so a handler may keep it and reading it triggers no render.