Effect CommunityEC
Effect Community3y ago
194 replies
Sadra

Removing CookieInvalidError from Effect Error Section

Attempting to retry the operation should ideally remove the error. However, the error persists even after the retry. How can I remove errors other than the CookieInvalidError from the Effect error section? Shouldn't we just create a new function,Error.ignoreTag("TagName"), to ignore the omitted tags after the retry?
Effect.retryWhile((err) => err._tag !== "CookieInvalidError"),
x => x,
Was this page helpful?