Skip to content

CollectingResponse inconsistency with actual response types #975

Open
@porcellus

Description

@porcellus

In our guides we recommend people to implement sending custom responses in API overrides by calling sendJSONResponse on the response class and that the object returned by the override will be ignored.
This doesn't work in the current implementation since later calls to sendJSONResponse (from a non-overrideable part of the SDK) will actually overwrite the response set in the override instead of simulating what other response types do, where the later calls to sendJSONResponse are ignored.
This is causing issues in our in NextJS integration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions