by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jun 05 13:37
  • Jun 04 16:44
    polunwu starred canjs/canjs
  • Jun 03 21:21
    JakeCr8Guru starred canjs/canjs
  • May 29 19:08
    cherifGsoul labeled #5479
  • May 28 17:07
  • May 26 18:19
    cherifGsoul opened #5492
  • May 23 05:53
    bmomberger-bitovi labeled #5491
  • May 23 05:53
    bmomberger-bitovi opened #5491
  • May 22 20:50
    greenkeeper[bot] commented #5489
  • May 22 20:50

    greenkeeper[bot] on can-observable-array-1.0.9

    fix(package): update can-observ… (compare)

  • May 21 20:25
    mikemitchel commented #5490
  • May 21 20:25
    mikemitchel labeled #5490
  • May 21 20:25
    mikemitchel opened #5490
  • May 19 22:21
    greenkeeper[bot] labeled #5489
  • May 19 22:21
    greenkeeper[bot] opened #5489
  • May 19 22:21

    greenkeeper[bot] on can-observable-array-1.0.8

    fix(package): update can-observ… (compare)

  • May 18 18:40
    greenkeeper[bot] commented #5469
  • May 18 18:40

    greenkeeper[bot] on @octokit

    chore(package): update @octokit… (compare)

  • May 17 22:31
    greenkeeper[bot] commented #5469
  • May 17 22:31

    greenkeeper[bot] on @octokit

    chore(package): update @octokit… (compare)

AntonProkofyev
@AntonProkofyev
i can see that this defineMap is definening in can-stache-bindings.js in
var viewModel = bindingData.getViewModel()
prop is name
Frank Lemanschik
@frank-dspeed
as i sayed you need to define name in your model first
AntonProkofyev
@AntonProkofyev
value is definemap
{name:Name}
@frank-dspeed what do you mean? can you clarify plz
Frank Lemanschik
@frank-dspeed
your applying can-connect to a Model right?
a defineMap
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