react-fluxible-intraspector

Intraspector for Fluxible applications

Usage no npm install needed!

<script type="module">
  import reactFluxibleIntraspector from 'https://cdn.skypack.dev/react-fluxible-intraspector';
</script>

README

React Fluxible Intraspector

npm version

This project is currently in development. Not recommended for use in production. APIs will change.

Component API

Intraspector

Attribute Required? Default Description
context Yes None Fluxible Application Context
traceKey Yes None Intraspector Trace Key

Example Usage

  1. Register Store in Fluxible Application
import { IntraspectorStore } from 'react-fluxible-intraspector';
app.registerStore(IntraspectorStore);
  1. Dispatch Intraspector Events
payload = {key: 'exampleKey', trace: intraspectorTrace};
actionContext.dispatch('intraspectorTrace.received', payload);
  1. Intraspector Component
import { Intraspector } from 'react-fluxible-intraspector';

Component = React.createClass({
render() {
  return (
    <Intraspector context={this.props.appContext} traceKey={'exampleKey'} />
  )
});
  1. Toggle debug mode in console to display Intraspector Component
toggleIntraspector()

Development Guide

git clone https://github.com/BespokeInsights/react-fluxible-intraspector.git
cd react-fluxible-intraspector
npm install

Make changes to files in the src/ folder. To build for release run npm run compile

Related Modules

Python Intraspector

Thanks

Proudly developed by Bespoke Insights