
Research
/Security News
Miasma Mini Shai-Hulud Hits ImmobiliareLabs npm Packages
Miasma Mini Shai-Hulud hits @immobiliarelabs Backstage plugins, targeting GitLab and LDAP auth packages on npm.
pinia-plugin-data
Advanced tools
数据持久化参照
pinia-plugin-persistedstate
npm i pinia-plugin-dataimport pinaPluginPersistence from "pinia-plugin-data";
import { createPinia } from "pinia";
import { createApp } from "vue";
const app = createApp(xxx);
const pinaAPP = createPinia();
pinaAPP.use(pinaPluginPersistence);
app.use(pinaAPP);
import {defineStore} from "pinia";
defineStore( name, {
persistence:true|{
readonly key?: string;
storage?: StorageLike;
serializer?: Serializer;
beforeRestore?: (context: PiniaPluginContext) => void;
afterRestore?: (context: PiniaPluginContext) => void ;
// 将当前的store恢复托管 到 center的store上
slave?: string;
center?: boolean;
/**
* 在任何地方恢复数据后执行查询是否过期 过期会删除缓存支持异步返回
* 在数据恢复之前执行 注意这个只是state的数据没有 getters和action等属性请不要直接调用getter方法
*/
onExpire:(store:StateTree):boolean;
}
}
)
FAQs
> 数据持久化参照 `pinia-plugin-persistedstate`
The npm package pinia-plugin-data receives a total of 17 weekly downloads. As such, pinia-plugin-data popularity was classified as not popular.
We found that pinia-plugin-data demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.

Research
/Security News
Miasma Mini Shai-Hulud hits @immobiliarelabs Backstage plugins, targeting GitLab and LDAP auth packages on npm.

Security News
Rolldown paused Rust React Compiler integration after a 5MB binary size increase raised concerns about shipping React-specific code to all Vite users.

Security News
/Research
Mini Shai-Hulud expands into the Go ecosystem after hitting LeoPlatform npm packages and targeting GitHub Actions workflows.