Socket
Socket
Sign inDemoInstall

fluxible-plugin-react-perf

Package Overview
Dependencies
22
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    fluxible-plugin-react-perf

A fluxible plugin that runs the React.Perf tools on every `executeAction` and `dispatch`.


Version published
Weekly downloads
17
increased by142.86%
Maintainers
1
Created
Weekly downloads
 

Changelog

Source

1.0.0 (25 May 2016)

  • [BUGFIX] Using object-assign since react no longer provides its own polyfill. (#2)
  • [UPGRADE] react and react-addons-perf both required as peer dependencies.

Readme

Source

fluxible-plugin-react-perf

A fluxible plugin that runs the React.Perf tools on every executeAction and dispatch.

npm install fluxible-plugin-react-perf 

Note: This version requires React.js >0.14.0-rc1, to use React 0.13.x, install version 0.1.3 of this plugin.

Usage

Simply plug the Plugin into any app to have it print out the React.Perf results after any executeAction and dispatch call depending on the provided configuration options.

Since this functionality will typically not be used continuously the plugin can be disabled without leaving any overhead by providing options.enabled = false.


import ReactPerfPlugin from 'fluxible-plugin-react-perf';

fluxible.plug(ReactPerfPlugin({
  enabled: true,
  // Overwrite default options
));

Configuration Options and Defaults

Globally enable or disable:

  • enabled (false): Turn the plugin on or off in its entirety.

Enable/disable the various React.Perf outputs:

Print the duration of the actions and dispatches themselves:

  • printActionDuration (true): Print the time elapsed from a call to executeAction until its done method is called or Promise resolved.
  • printDispatchDuration (true): Print the time it takes to execute a dispatch from within an action creator.

Make the output even more verbose for further debugging:

  • verbose (true): Print a notice whenever an action or dispatch starts executing, useful when debugging to see where things fail.
  • printActionPayload (false): If verbose mode is enabled this will also print the payload provided to all executed actions.

License

This software is free to use under the MIT license. See the LICENSE file for license text and copyright information.

Keywords

FAQs

Last updated on 25 May 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc