mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
In the case where an error is thrown in the UI before initialization has finished, we aren't capturing the application state correctly for Sentry errors. We had a test case for this, but the test case was broken due to a mistake in how the `network-store` was setup (it was not matching the behavior of the real `local-tstore` module). The pre-initialization state capture logic was updated to rely solely upon the `localStore` instance used by Sentry to determine whether the user had opted-in to metrics or not. This simplifies the logic a great deal, removing the need for the `getMostRecentPersistedState` state hook. It also ensures that state is captured corretly pre- initialization in both the background and UI. |
||
---|---|---|
.. | ||
ens-ipfs | ||
middleware | ||
migrator | ||
ppom | ||
rpc-method-middleware | ||
segment | ||
account-tracker.js | ||
account-tracker.test.js | ||
backup.js | ||
backup.test.js | ||
cleanErrorStack.js | ||
cleanErrorStack.test.js | ||
ComposableObservableStore.js | ||
ComposableObservableStore.test.js | ||
createDupeReqFilterMiddleware.js | ||
createDupeReqFilterMiddleware.test.js | ||
createLoggerMiddleware.js | ||
createMetamaskMiddleware.js | ||
createMetaRPCHandler.js | ||
createMetaRPCHandler.test.js | ||
createOnboardingMiddleware.js | ||
createOriginMiddleware.js | ||
createRPCMethodTrackingMiddleware.js | ||
createRPCMethodTrackingMiddleware.test.js | ||
createStreamSink.js | ||
createTabIdMiddleware.js | ||
extractEthjsErrorMessage.js | ||
get-first-preferred-lang-code.js | ||
getObjStructure.js | ||
local-store.js | ||
local-store.test.js | ||
metaRPCClientFactory.js | ||
metaRPCClientFactory.test.js | ||
network-store.js | ||
notification-manager.js | ||
notification-manager.test.ts | ||
security-provider-helpers.test.ts | ||
security-provider-helpers.ts | ||
seed-phrase-verifier.js | ||
seed-phrase-verifier.test.js | ||
sentry-filter-events.ts | ||
setup-initial-state-hooks.js | ||
setupSentry.js | ||
setupSentry.test.js | ||
stream-utils.js | ||
util.test.js | ||
util.ts |