anthonygore / anthonygore/vuex-undo-redo

Bug: vuex-undo-redo subscribes once per component

未关闭
#22 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
171
派生
36
PR 合并指标
30 天内没有已合并 PR

描述

I'm trying to trace down performance issues with regard to the undo functionality provided by this plugin.

When adding a `console.log` statement to `created()` here:

https://github.com/anthonygore/vuex-undo-redo/blob/6e34a39718320fbf956fb505ed3b13857c9678ce/src/plugin.js#L17-L28

I noticed that this callback is actually called several times, basically once for each created component, which leads to Vuex accumulating hundreds of subscribers.

I'm not sure how to fix this though.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。