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?
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 inusePostSearch
to check if the props are valid?