-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: miscellaneous updates to signin #211
Conversation
Include snapshot for error state
data-test="search-results-cards" | ||
:data-source="searchResult[record.type]" | ||
/> | ||
<ErrorBoundary v-for="record in section.records" :key="record.type"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: ErrorBoundary
can be added anywhere. For example, in this v-for
, we can stop the error from bubbling all the way up the component tree and only render the error message in the single card that failed, so the user can still interact with the rest of the UI.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
Updates following this PR comment
Also resolves #210