Skip to content

PostSearchControl breaks if post type does not exist #7

@mirasusanna

Description

@mirasusanna

This might be a non-issue really but wanted to report anyway.

I made a goddamn typo in PostSearchControl type prop (mistook a dash for underscore in cpt name) and it took me way too long to figure our where the issue was. The component just seems to get stuck in this infinite loop of searching for posts in nonexistent post type without any errors. Maybe it could be useful in usePostSearch to check if the props are valid?

image

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