Skip to content

Use data() like latest Epic Stack in single.tsx action return #345

@thadk

Description

@thadk

Like this:

if (submission.status !== 'success') {
return data(
{ result: submission.reply() },
{ status: submission.status === 'error' ? 400 : 200 },
)
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    heat-app-jsIssues related to the HEAT app frontendhelp wantedExtra attention is neededtechnical

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions