8000 GitHub - winterbe/mobx-logger at 0.2.0
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

winterbe/mobx-logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MobX Logger

mobx-logger

Follow on Twitter for Updates

Install

NPM: npm install mobx-logger

CDN: https://npmcdn.com/mobx-logger/mobx-logger.umd.js

Usage

import {enableLogging} from 'mobx-logger';

// optional
const config = {...};

enableLogging(config);

Options

{
    predicate: () => true|false,
    action: true|false,
    reaction: true|false,
    transaction: true|false,
    compute: true|false
}

ReactNative

For ReactNative development use this predicate to only enable logging in dev mode with JS debugging enabled:

enableLogging({
    predicate: () => __DEV__ && Boolean(window.navigator.userAgent),
    ...
});

LICENSE

MIT

About

Log Mobx Actions, Reactions, Transactions and Computations

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 5

0