【发布时间】:2021-11-06 20:01:52
【问题描述】:
根据文档:'Subscribes' the component to keep cached data in the store, and 'unsubscribes' when the component unmounts。
有没有办法让突变的缓存无处不在而不是“取消订阅”它?我的意思是我可以在不同的组件中调用useMutation 并获取所有这些组件的缓存数据和状态同步(如查询)。因为现在,一旦组件卸载,我就会丢失数据。
【问题讨论】:
标签: reactjs redux react-redux redux-toolkit rtk-query