0
v3.rc5 JS-数据HTTP rc.2商店不会缓存嵌套对象
我的API使用嵌套的资源响应e.g
/user
回应一个嵌套的轮廓。“个人资料” 和 “用户” 是两个映射器与各自的关系
"user": { "id": 1, "name": "Peter", "profile": { "id": 5 "dob": "today" } }
“轮廓” 不会被添加到缓存中。我可以调用user.profile,但store.cachedFind('profile', 5)
返回undefined。
手动呼叫 store.addToCache('profile', user.profile)
不会抛出任何错误,但也不会将其添加到缓存中。
我在做什么错?请帮忙。谢谢。