@@ -2,10 +2,8 @@ import { HttpClientError } from "@effect/platform"
|
||||
import { ErrorHandler, QueryClient } from "@reffuse/extension-query"
|
||||
|
||||
|
||||
export class AppQueryErrorHandler extends ErrorHandler.Tag("AppQueryErrorHandler")<AppQueryErrorHandler,
|
||||
export class AppQueryErrorHandler extends ErrorHandler.Service("AppQueryErrorHandler")<AppQueryErrorHandler,
|
||||
HttpClientError.HttpClientError
|
||||
>() {}
|
||||
export const AppQueryErrorHandlerLive = ErrorHandler.layer(AppQueryErrorHandler)
|
||||
|
||||
|
||||
export class AppQueryClient extends QueryClient.Service({ ErrorHandler: AppQueryErrorHandler })<AppQueryClient>() {}
|
||||
|
||||
Reference in New Issue
Block a user