File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
packages/node_modules/overmind/src Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 11import { EventEmitter } from 'betsy'
22import isPlainObject from 'is-plain-obj'
3- import { IS_PROXY , ProxyStateTree , TTree , IMutation } from 'proxy-state-tree'
3+ import {
4+ IS_PROXY ,
5+ ProxyStateTree ,
6+ TTree ,
7+ IMutation ,
8+ VALUE ,
9+ } from 'proxy-state-tree'
410import { Derived } from './derived'
511import { Devtools , Message , safeValue , safeValues } from './Devtools'
612import {
@@ -106,6 +112,12 @@ export class Overmind<Config extends Configuration> implements Configuration {
106112 */
107113
108114 if ( ! IS_PRODUCTION && typeof window !== 'undefined' ) {
115+ const originalConsoleLog = console . log
116+ console . log = ( ...args ) =>
117+ originalConsoleLog . apply (
118+ console ,
119+ args . map ( ( arg ) => ( arg && arg [ IS_PROXY ] ? arg [ VALUE ] : arg ) )
120+ )
109121 if (
110122 options . devtools ||
111123 ( location . hostname === 'localhost' && options . devtools !== false )
You can’t perform that action at this time.
0 commit comments