File tree 2 files changed +6
-7
lines changed
packages/react-hot-loader/src
2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 1
- import createProxy , { setConfig } from 'react-stand-in'
2
- import logger from '../logger'
1
+ import createProxy from 'react-stand-in'
3
2
4
3
let proxiesByID
5
4
let idsByType
6
5
7
6
let elementCount = 0
8
7
9
- setConfig ( { logger } )
10
-
11
8
const generateTypeId = ( ) => `auto-${ elementCount ++ } `
12
9
13
10
export const getIdByType = type => idsByType . get ( type )
Original file line number Diff line number Diff line change 1
1
import { getProxyByType } from './reconciler/proxies'
2
2
import reactHotLoader from './reactHotLoader'
3
+ import logger from './logger'
4
+ import { setConfig as setProxyConfig } from 'react-stand-in'
5
+
6
+ setProxyConfig ( { logger } )
3
7
4
8
export const areComponentsEqual = ( a , b ) =>
5
9
getProxyByType ( a ) === getProxyByType ( b )
6
10
7
- export const setConfig = config => {
8
- Object . assign ( reactHotLoader . config , config )
9
- }
11
+ export const setConfig = config => Object . assign ( reactHotLoader . config , config )
You can’t perform that action at this time.
0 commit comments