mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-26 07:59:48 +03:00
Remove problematic code
This commit is contained in:
parent
1b87ca46d9
commit
7dfbf20242
|
@ -68,10 +68,6 @@ export default class StackTraceTab<
|
|||
|
||||
getStackFrames(deserializedError)
|
||||
.then((stackFrames) => {
|
||||
/* eslint-disable no-console */
|
||||
if (process.env.NODE_ENV === 'development')
|
||||
console.log('Stack frames: ', stackFrames);
|
||||
/* eslint-enable no-console */
|
||||
this.setState({
|
||||
stackFrames: stackFrames!,
|
||||
currentError: deserializedError,
|
||||
|
|
|
@ -1,19 +0,0 @@
|
|||
/**
|
||||
* Copyright (c) 2015-present, Facebook, Inc.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
if (typeof Promise === 'undefined') {
|
||||
// Rejection tracking prevents a common issue where React gets into an
|
||||
// inconsistent state due to an error, but it gets swallowed by a Promise,
|
||||
// and the user has no idea what causes React's erratic future behavior.
|
||||
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
||||
require('promise/lib/rejection-tracking').enable();
|
||||
window.Promise = require('promise/lib/es6-extensions.js');
|
||||
}
|
||||
|
||||
// Object.assign() is commonly used with React.
|
||||
// It will use the native implementation if it's present and isn't buggy.
|
||||
Object.assign = require('object-assign');
|
Loading…
Reference in New Issue
Block a user