Using synchronous state in react.
这是一个可以将pinia state保存到localStorage和sessiongStorage的插件,比较简单,github上有更优秀的插件可使用
可进行拦截操作的不可变数据结构