These are chat archives for canjs/canjs

29th
May 2017
Frank Lemanschik
@frank-dspeed
May 29 2017 10:18
does any one maybe know the current versions to use of can-stream-kefir and can-define-stream-kefir and all this :)
when using donejs and DefineMap
Dovid Bleier
@dbleier
May 29 2017 19:17
having some issues with localStorage cache and can-set algebra
two scenerios
Frank Lemanschik
@frank-dspeed
May 29 2017 19:17
every one has that :)
Dovid Bleier
@dbleier
May 29 2017 19:18
thanks ;)
  1. I make a call Sign.getList({id: id, user: user})
so an entry is made in cache signCache/[{id: 123, user: joe}] something like that
but now I want to send back additional parameters to the server but not included in the cache, such as Sign.getList({id: id, user: user, serialNumber: sn})
problem is, it looks for a cache key that includes serialNumber which it does not find, but when it gets back a response, since {id: 123, user: joe, serialNumber: 456} is a subset of the original cache key, it does not update the key.
Dovid Bleier
@dbleier
May 29 2017 19:23
so if there is no network connection, instead of pulling from cache, I get a blank screen
  1. I make a call Sign.getList({id: id}) (no user assigned yet)
then it gets a user from the server and calls Sign.getList({id: id, user: user}) but again, the cache only has id and since id,user is a subset, cache key is not updated
Frank Lemanschik
@frank-dspeed
May 29 2017 19:25
you need to publish a example i think
on a jsfiddle or jsbin
Dovid Bleier
@dbleier
May 29 2017 19:26
basically I just need to know how to prevent properties from being included in a lookup to the cache and how to add subsets to the cache
Frank Lemanschik
@frank-dspeed
May 29 2017 19:28
sounds like the complicated stuff that i never understood
i only know they splitted it up into behaviers
Dovid Bleier
@dbleier
May 29 2017 19:29
that makes two of us :)
Frank Lemanschik
@frank-dspeed
May 29 2017 19:29
and then they put them into the can connect
can connect some how does all this magic stuff that i never undertstood
and never worked
only in the examples with exactly that version that they used for that example
but i think there will be a day when some one can simply set propertys and edit the functions that they build in
so the result is right
when ever something of that stuff don't works for a partial component simply fall back to jquery
that works always :D
Jeroen Cornelissen
@jeroencornelissen
May 29 2017 19:36
@dbleier @frank-dspeed does adding serialize: false to the property help?
Frank Lemanschik
@frank-dspeed
May 29 2017 19:36
i am not sure
i think it could prevent caching
Dovid Bleier
@dbleier
May 29 2017 19:37
@jeroencornelissen I don't think so, this is not a define property, it's something being passed into can-connect, so I don't know where you would specify serialize:false
Jeroen Cornelissen
@jeroencornelissen
May 29 2017 19:38
aah ok, I thought serialnumber was a property of your model
Dovid Bleier
@dbleier
May 29 2017 19:38
no, not in this case
sounds like this is a question for the core canjs team
Frank Lemanschik
@frank-dspeed
May 29 2017 19:44
yes i think so too
Dovid Bleier
@dbleier
May 29 2017 19:45
I always see @justinbmeyer discussing it on any can-set related video, maybe he can weigh in
Frank Lemanschik
@frank-dspeed
May 29 2017 19:46
yes he is probally the one and only who can use canjs :)
i always wonder what is the missing part that he knows that all others don't know