Custom Fetch Implementation Fails in HttpClient Setup

I'm trying to provide a different
fetch
implementation to my
HttpClient
- this does not work

export const client = (f: any) => {
    return HttpResolver.make<AppRouter>(
        HttpClient.fetchOk.pipe(
            HttpClient.mapRequest(HttpClientRequest.prependUrl('/api/rpc')),
            HttpClient.transform((effect) => effect.pipe(Effect.provideService(HttpClient.Fetch, f)))
        )
    ).pipe(Resolver.toClient);
};
Was this page helpful?