-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
fix(core): Check for storage initialization errors #13938
Conversation
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.
LGTM, thanks! Looks like we need to tweak some bundle size tests
@@ -5,7 +5,6 @@ | |||
/* eslint-disable camelcase */ | |||
|
|||
/* Does not like exhaustive checks */ | |||
/* eslint-disable no-case-declarations */ |
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.
this was from running yarn lint:fix on core
Co-authored-by: AllanZhengYP <zheallan@amazon.com>
? window.localStorage | ||
: new InMemoryStorage(); | ||
|
||
const logger = new ConsoleLogger('CoreStorageUtils'); |
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.
I dont' think we have a convention for logger name but this looks good to me!
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 to me! TY @cwomack
This reverts commit 0f50917.
Description of changes
Added Session Storage and Default Storage try catch blocks
Issue #, if available
Resolves #13747
Description of how you validated changes
Checklist
yarn test
passesChecklist for repo maintainers
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.