Skip to content
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

Fix: reload widget on safe change + catch errors #1319

Merged
merged 1 commit into from
Dec 7, 2022

Conversation

katspaugh
Copy link
Member

What it solves

Resolves #1317

How this PR fixes it

I've added a check for safeLoading, like in the big AppFrame. It will re-mount the component on Safe change.

Also an error fallback is now rendered if the manifest fails to load. I've adjusted the error fallback to only show the error message once for both widget. It makes little sense to have two of the same.

@github-actions
Copy link

github-actions bot commented Dec 7, 2022

Branch preview

✅ Deploy successful!

https://fix-frame--webcore.review-web-core.5afe.dev

@github-actions
Copy link

github-actions bot commented Dec 7, 2022

ESLint Summary View Full Report

Annotations are provided inline on the Files Changed tab. You can also see all annotations that were generated on the annotations page.

Type Occurrences Fixable
Errors 0 0
Warnings 0 0
Ignored 0 N/A
  • Result: ✅ success
  • Annotations: 0 total

Report generated by eslint-plus-action

Copy link
Member

@DiogoSoaress DiogoSoaress left a comment

Choose a reason for hiding this comment

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

It looks good to me and the widgets are reloading nicely when switching Safes.

@katspaugh katspaugh merged commit 4991d1d into epic-governance Dec 7, 2022
@katspaugh katspaugh deleted the fix-frame branch December 7, 2022 14:30
@github-actions github-actions bot locked and limited conversation to collaborators Dec 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants