Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果我使用 updateOneInCache,那么之后任何类都将转换为对象。使用 removeOneFromCache 并在 addOneToCache 之后不会发生这种情况。使用 updateOneInCache 时如何解决此问题?
你无法解决这个问题。关键概念之一是状态应该可序列化存储,类实例不可序列化。有关更多信息,请参阅redux 样式指南。