🚀 DAY 5 OF LAUNCH WEEK:Introducing Webhook Events for Alert Changes.Learn more →
Socket
Book a DemoInstallSign in
Socket

@embrace-io/react-native-action-tracker

Package Overview
Dependencies
Maintainers
4
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@embrace-io/react-native-action-tracker

Allows tracking the dispatched actions of your state management using the Embrace SDK

latest
Source
npmnpm
Version
5.2.0
Version published
Weekly downloads
75
22.95%
Maintainers
4
Weekly downloads
 
Created
Source

React Native Embrace - Redux Tracker

[!IMPORTANT]

This module requires React Native Embrace SDK.

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.

Install the component

yarn add @embrace-io/action-tracker

Or

npm install @embrace-io/action-tracker

Adding the component to your code

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

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

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

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

Keywords

embrace

FAQs

Package last updated on 06 Jan 2025

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