headstartwp
headstartwp copied to clipboard
When ServerRelatedPosts fails, queryPosts throws an error
Describe the bug
In wp-nextjs-app:
Even if the main query is working, the error from the ServerRelatedPosts
component will override the output of the main query and display an error.
Can we safely add options: { throwIfNotFound: false }
to the queryPosts call in ServerRelatedPosts
to suppress this error?
Steps to Reproduce
- Create a site with only one post
- Visit that post
Screenshots, screen recording, code snippet
https://share.zight.com/kpuv9Pqg
Environment information
No response
WordPress information
No response
Code of Conduct
- [X] I agree to follow this project's Code of Conduct