Skip to content

Conversation

zth
Copy link
Member

@zth zth commented Aug 4, 2023

Whenever there's a missing property in a record, we optimistically tell the user this might be a component. While that is great, we're always printing it for any record.

This diff applies a simple heuristic ("is the record called props?") when deciding to print the message about this being a component or not.

@zth zth requested review from cristianoc and mununki August 4, 2023 07:52
Copy link
Member

@mununki mununki left a comment

Choose a reason for hiding this comment

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

Looks great! Thanks

Copy link
Collaborator

@cristianoc cristianoc left a comment

Choose a reason for hiding this comment

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

Good idea

@zth zth merged commit 87d7869 into master Aug 4, 2023
@zth zth deleted the error-message-missing-prop branch August 4, 2023 11:03
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.

3 participants