Skip to content

Can serializeError in AsyncThunkOptions be updated to be async (could be helpful for async calls like Response.text())? #3645

Open
@TedGardner

Description

@TedGardner

I'd like to use that method to serialize incoming failed responses, but the responses might come in as a ResponseError - where getting the response body is an asynchronous operation.

In the meantime, I can continue using a try/catch in the payload creator. Alternatively, I could maybe be able to get around this by returning a SerializedError, then mutating it on Promise.then, but I'm really not sure if the latter is something I should consider.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions