MCPcopy Create free account
hub / github.com/effect-app/libs / isRetryable

Function isRetryable

packages/vue/src/internal/tanstackQuery.ts:50–55  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

48 : Effect.die(error)
49
50const isRetryable = (error: unknown) => {
51 if (error instanceof CauseException) {
52 return isHttpClientError(error.cause) || S.is(ServiceUnavailableError)(error.cause)
53 }
54 return false
55}
56
57const isInputOption = <I>(value: I | Option.Option<I> | undefined): value is Option.Option<I> => Option.isOption(value)
58

Callers 1

useQueryFunction · 0.70

Calls 2

isHttpClientErrorFunction · 0.90
isMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…