环境:iOS Safari(macOS 无法复现)
使用 Vue+Webpack 开发,全局引入 Persist 后,在各组件中直接定义不重复的 persist,实现所有组件都能持久化数据。按上述方式使用时发现,多组件并发更新时,后更新的组件持久化数据将会覆盖先更新的组件的更改。
可能是由于不同组件都独立维护了 store 对象,导致组件间的 store 不同步,从而写入时出现覆盖。(index.js#L40)
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too