Socket
Socket
Sign inDemoInstall

@openreplay/tracker-mobx

Package Overview
Dependencies
4
Maintainers
3
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @openreplay/tracker-mobx

Tracker plugin for MobX events recording


Version published
Maintainers
3
Created

Readme

Source

OpenReplay Tracker MobX plugin

A MobX plugin for OpenReplay Tracker. This plugin allows you to see the MobX events during session replay.

Installation

npm i @openreplay/tracker-mobx

Usage

Initialize the @openreplay/tracker package as usual and load the plugin into it. Then use returned value to track MobX obervables.

import { observable } from 'mobx';
import Tracker from '@openreplay/tracker';
import trackerMobX from '@openreplay/tracker-mobx';

const tracker = new Tracker({
  projectKey: YOUR_PROJECT_KEY,
});

const observe = tracker.plugin(trackerMobX());

const myArray = observable(['foo', 'bar', 42]);
observe(myArray);


myArray.push("Hello world"); // This mutation will be tracked

Keywords

FAQs

Last updated on 21 Oct 2021

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