Skip to content

Conversation

@gcwill70
Copy link
Contributor

@gcwill70 gcwill70 commented Jan 20, 2026

Properly display a not found error if the record is not found

return thread
} catch (err) {
if (err instanceof GetPostThread.NotFoundError) {
return undefined
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@foysalit The more robust way to catch the post not found error is probably to not return undefined here. However, I assumed that this is here for a reason so I added the conditional down below

If the post isn't found, the rest of the page will still render and only the RecordView component will be hidden. I'm not sure if this behavior is important or not but it minimizes behavioral changes.

@gcwill70 gcwill70 requested a review from foysalit January 20, 2026 01:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant