@oxvo/browser-vuex
v3.0.0
Published
OxvoSessions Browser SDK plugin for Vuex store instrumentation.
Maintainers
Readme
@oxvo/browser-vuex
Vuex and Pinia state adapter for OxvoSessions browser replay.
Install
npm i @oxvo/browser-vuexVuex Example
import Vuex from 'vuex';
import Browser from '@oxvo/browser';
import browserVuex from '@oxvo/browser-vuex';
const browser = new Browser({
siteKey: 'ws_live_01HZX8M4B3',
});
const trackStore = browser.use(browserVuex());
const store = new Vuex.Store({
plugins: [trackStore('web-app')],
});Options
filter: choose which mutations or actions are recordedtransformer: redact or reshape state snapshotsmutationTransformer: format the recorded mutation payload
The same adapter can also be used with Pinia stores because the runtime supports both subscription styles.
