Skip to content

<ContentQuery />: improve handling of null data in control flow #1228

@qin-guan

Description

@qin-guan

Is your feature request related to a problem? Please describe

When data from query is null and user did not provide not-found slot, this line will be unable to read data._type.

Describe the solution you'd like

Perhaps either document this behavior or change conditional to check for data?._type.

Describe alternatives you've considered

N/A

Additional context

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions