Skip to content

Best practices for avoiding frequent request/response console bugs #17

@timkelty

Description

@timkelty

A seemingly very common bug is for devs to rely on request/response props and methods that are available in a web app context, but not in a console one.

Especially with the queue, devs may not realize that their code needs to be able to run as web OR console.

So, one generally needs to sprinkle a bunch of getIsConsoleRequest conditionals around.

Is there a better solution here?

The bug is understandable, as things may work fine for the dev when testing if they are not running their queue from console.

Examples:

Metadata

Metadata

Assignees

No one assigned

    Labels

    📦 CMSCraft CMS content related issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions