You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using a store of [ Rest, Cache ] when you call store.add() the chain of calls is Cache.add() -> Rest.add() -> Cache.put() -> Rest.put()
in the Cache.put() function at line 147 in Cache.js - cachingStore.put(object, directives) makes a call to Memory which gives the the object an ID. this ID is then used to build the url by setting hasId to true at line 76 in Rest.js. so you end with a url like - /api/foo/0.142823
If you remove the call to cachingStore.put at line 147 and only update the cache after the master is finish things work correctly.
The text was updated successfully, but these errors were encountered:
Because this hasn't been fixed upstream, I'm fixing it here.
Adding an object to a cache-backed Rest store causes what should be a
POST call to turn into a PUT call with a random id.
using a store of [ Rest, Cache ] when you call store.add() the chain of calls is Cache.add() -> Rest.add() -> Cache.put() -> Rest.put()
in the Cache.put() function at line 147 in Cache.js - cachingStore.put(object, directives) makes a call to Memory which gives the the object an ID. this ID is then used to build the url by setting hasId to true at line 76 in Rest.js. so you end with a url like - /api/foo/0.142823
If you remove the call to cachingStore.put at line 147 and only update the cache after the master is finish things work correctly.
The text was updated successfully, but these errors were encountered: