Open mrphu3074 opened 8 years ago
That's a good idea. I didn't worry about this because, in react, this is kind a okay. But I get it. For now, we can do a deep equal check here. See: https://github.com/kadirahq/lokka/blob/master/lib/cache.js#L65
We can do better, once we got the server side schema to the client. With that, we plan to use immutable JS as the core. If this is a burning issue for you, try to send me a PR.
Anyway, we'll have proper schema validations and so by February.
hi,
I using
lokka
in client products, lokka really awesome and easier than Relay, but i have trouble about cache update. Lokka trigger mywatchHandler
even data not changeCan we check diff payloads in func
setItemPayload
before update new payload and trigger callbacks?