
Security News
The Changelog Podcast: Practical Steps to Stay Safe on npm
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.
@openreplay/tracker-vuex
Advanced tools
A Vuex plugin for OpenReplay Tracker. This plugin allows you to see the application state during session replay.
npm i @openreplay/tracker-vuex
Initialize the @openreplay/tracker package as usual and load the plugin into it.
Then put the generated plugin into your plugins field of your store.
import Vuex from 'vuex'
import Tracker from '@openreplay/tracker';
import trackerVuex from '@openreplay/tracker-vuex';
const tracker = new Tracker({
projectKey: YOUR_PROJECT_KEY,
});
const store = new Vuex.Store({
// ...
plugins: [tracker.plugin(trackerVuex())],
});
You can customize the plugin behavior with options to sanitize your data. They are similar to the ones from the standard createLogger plugin.
trackerVuex({
filter (mutation, state) {
// returns `true` if a mutation should be logged
// `mutation` is a `{ type, payload }`
return mutation.type !== "aBlacklistedMutation";
},
transformer (state) {
// transform the state before logging it.
// for example return only a specific sub-tree
return state.subTree;
},
mutationTransformer (mutation) {
// mutations are logged in the format of `{ type, payload }`
// we can format it any way we want.
return mutation.type;
},
})
FAQs
Tracker plugin for Vuex state recording
The npm package @openreplay/tracker-vuex receives a total of 1,170 weekly downloads. As such, @openreplay/tracker-vuex popularity was classified as popular.
We found that @openreplay/tracker-vuex demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
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.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.