Rxact Debugger
Debugger for Rxact.
Installation
yarn add rxact
yarn add rxact-debugger --dev
Usage
There are two ways:
1. Install as a plugin
const stream = 'stream' name: 'rxact' streamdebuggerstart
2. Enhance StateStream
const EnhancedStateStream = StateStream const stream = 'stream' name: 'rxact' streamdebuggerstart
And you can access state streams in browser developer console
via:
windowrxactDebuggeruser // assume you have a stateStream named user
API
plugin(options)
Return a StateStream plugin.
-
options: An object contain options.
Property Type Description Default start bool/array start logger default or not. If value is an array of name of state stream, it will only start logger of these state streams. false
decorator(options)
Return a function for wrapping StateStream.
- options: As same as plugin's options.
stateStream.debugger
stateStreamdebugger: start: Function stop: Function
An debugger object, contains start
and stop
function.
- start: start logging.
- stop: stop logging.