(methodName: string, ...args: Array<mixed>)
| 83 | console.error('[React DevTools]', ...args); |
| 84 | |
| 85 | function debug(methodName: string, ...args: Array<mixed>) { |
| 86 | if (__DEBUG__) { |
| 87 | console.log( |
| 88 | `%c[core/standalone] %c${methodName}`, |
| 89 | 'color: teal; font-weight: bold;', |
| 90 | 'font-weight: bold;', |
| 91 | ...args, |
| 92 | ); |
| 93 | } |
| 94 | } |
| 95 | |
| 96 | function safeUnmount() { |
| 97 | flushSync(() => { |