🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@embrace-io/action-tracker

Package Overview
Dependencies
Maintainers
4
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@embrace-io/action-tracker

Allows to track the dispatched actions of your state managment

unpublished
latest
Source
npmnpm
Version
3.17.0
Version published
Maintainers
4
Created
Source

React Native Embrace - Redux Tracker

Core Module Required

This module requires React Native Embrace SDK.

Add React Redux Tracker

Adding Context to Sessions

Embrace can collect basic session data and crashes as you've already seen in the Crash Reporting and Session Reporting sections. Embrace can also collect the actions that your app dispatched and its state (SUCCESS AND FAILED) Here's how you add the redux tracker to the session.

Adding the component

Embrace has a separate module for tracking Redux's Actions, to use it you will need to add the React Redux Tracker

Install the component

yarn add @embrace-io/action-tracker
npm install @embrace-io/action-tracker

Adding the component to your code

Add an useRef for the NavigationContainer and pass it to Embrace's hook

import { applyMiddleware, compose, configureStore } from "@reduxjs/toolkit";

// Import the Embrace's Middleware
import { buildEmbraceMiddleware } from "@embrace-io/action-tracker";

// Create the Enhancer that applies the Embrace's Middleware
const middlewareEnhancer = applyMiddleware(buildEmbraceMiddleware());

// Compose your Enhancers with the Embrace's enahncer
const composedEnhancers = compose(middlewareEnhancer);
export default configureStore({
  // your reducers
  enhancers: [composedEnhancers],
});

FAQs

Package last updated on 16 Jan 2024

Did you know?

Socket

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