Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Apr 18 19:15
    kuwaitbinary starred canjs/canjs
  • Apr 13 20:21
    nbrunelle starred canjs/canjs
  • Apr 02 09:33
    xartd starred canjs/canjs
  • Mar 28 08:25
    vscuorzo starred canjs/canjs
  • Mar 24 13:17
  • Mar 16 13:19
    gdkttt starred canjs/canjs
  • Mar 08 16:50
    themyshkin removed as member
  • Mar 07 15:02
    baali-boudjemaa starred canjs/canjs
  • Feb 26 12:41
    horikeso starred canjs/canjs
  • Feb 22 17:42
    dnalbach starred canjs/canjs
  • Feb 17 13:45
    BirolAYDIN starred canjs/canjs
  • Feb 15 17:22
    prawee starred canjs/canjs
  • Feb 15 12:08
    philipstubbs13 starred canjs/canjs
  • Feb 13 20:42
    justinbmeyer commented #5456
  • Feb 13 06:49
    frank-dspeed commented #5456
  • Feb 12 21:42
    justinbmeyer closed #4872
  • Feb 12 21:42
    justinbmeyer closed #4870
  • Feb 12 21:42
    justinbmeyer closed #4868
  • Feb 12 21:42
    justinbmeyer closed #4867
  • Feb 12 21:42
    justinbmeyer closed #4853
AntonProkofyev
@AntonProkofyev
i would like to add the response obj to the viewmodel of a component
viewmodel is defineMap
AntonProkofyev
@AntonProkofyev
may be there is any different sollution?
Gregg Roemhildt
@roemhildtg
@phillipskevin I think canjs/canjs#3427 is actually related to my can-connect behavior. I got into ios debugging and it looks like my parseInstanceData is not being called at all which is generating the issues with the data retrieved.
Kevin Phillips
@phillipskevin
a custom behavior you mean?
Gregg Roemhildt
@roemhildtg
Yes
I think it might have to do with the order of the custom/builtin behaviors
Justin Meyer
@justinbmeyer
Contributor meeting: https://www.youtube.com/watch?v=dmwV1U3ExSQ Shows ReactViewModels, steams, and the incremental SSR stuff we have been working on
Gregg Roemhildt
@roemhildtg
What's the best order to put can-connect behaviors in? currently I have this, but its still not working on ios...
    var behaviors = [
        canConstructor,
        canMap,
        canRef,
        RestlessData, //custom getlist, createdata, getdata, etc
        constructorStore,
        dataCallbacks,
        dataParse,
        RestlessParse, //custom parseListProp, parseInstanceData 
        realTime,
        callbacksOnce
    ];
Gregg Roemhildt
@roemhildtg
parseInstanceData still is never called, on ios, unless I move it up the list. Is there a good way to know where to place it?
Justin Meyer
@justinbmeyer
@roemhildtg only ios?
Frank Lemanschik
@frank-dspeed
is some one familar with the part what exactly is incompatible with can-component ? https://canjs.com/doc/can-ejs.html#BasicExample
i can't imagin a situation
Gregg Roemhildt
@roemhildtg
Yeah it was working on windows Firefox Chrome just not ios. Took forever to get a debugger working but it showed those methods were ignored. Switched the order and it started working.
Frank Lemanschik
@frank-dspeed
do we got something like this?
SproutCore does one thing which very few frameworks do propertly: being a native like API framework, including built in application state chart
Frank Lemanschik
@frank-dspeed
i think thats already inside right with the viewModel backup rollback stuff?
Frank Lemanschik
@frank-dspeed
CDNUSSR joke is Content Delivery Network Unit Server Side Rendering
Eben
@eben-roux
hello
Mohamed Cherif Bouchelaghem
@cherifGsoul
Hello @eben-roux
Frank Lemanschik
@frank-dspeed
hello again
what do we wanna do today :D
Eben
@eben-roux
it seems as though when I set an attribute on my model then it results in some infinite loop
does that sound familiar?
Frank Lemanschik
@frank-dspeed
ehm nope
but i know a way to produce a infinity loop
Eben
@eben-roux
almost as if the method observes the change and then the change occurs in the method and then back to observing the change
lol
I'm sure you do
Frank Lemanschik
@frank-dspeed
if your defining a setter with a start value that returns a value
Eben
@eben-roux
if you have a fast enough machine then an infinite loop only takes 6 seconds to complete
Mohamed Cherif Bouchelaghem
@cherifGsoul
almost as if the method observes the change and then the change occurs in the method and then back to observing the change
Frank Lemanschik
@frank-dspeed

foo: {
  value: 1,
  set(val) {
    setTimeout(() => { this.foo+=1 }, 1000);
    return val;
  }
}
Mohamed Cherif Bouchelaghem
@cherifGsoul

what you mean by that

almost as if the method observes the change and then the change occurs in the method and then back to observing the change

Frank Lemanschik
@frank-dspeed
this will automatic infinty loop
and what cherif says is also right if you change the value the setter gets recalled and does what ever it does
Eben
@eben-roux
let me see if I can put together a jsbin to illustrate
Mohamed Cherif Bouchelaghem
@cherifGsoul
ok
Eben
@eben-roux
of course I cannot reproduce this with a simple jsbin :( --- typical
anyway, I worked around the issue
what I was doing was actually "sub-optimal"...
Frank Lemanschik
@frank-dspeed
ok
Eben
@eben-roux
using {{#if}} render components or not is actually not the best way to go
Frank Lemanschik
@frank-dspeed
i am happy that we could help you :)
the if thing works great
what else you can do ?
Eben
@eben-roux
it is way better, IMHO, to rather bind to a class attribute like hidden
Frank Lemanschik
@frank-dspeed
hmmm