Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 19:18
    JimMorrison723 starred canjs/canjs
  • Apr 01 03:34
    GraceFatima commented on 695c6da
  • Mar 31 06:37
    hrnkoji starred canjs/canjs
  • Mar 26 22:02
    greenkeeper[bot] commented #5469
  • Mar 26 22:02

    greenkeeper[bot] on @octokit

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

  • Mar 25 21:18
    sdillen starred canjs/canjs
  • Mar 25 20:34
    Aliens-dev starred canjs/canjs
  • Mar 25 19:43
    greenkeeper[bot] commented #5469
  • Mar 25 19:43

    greenkeeper[bot] on @octokit

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

  • Mar 25 08:06
    leepeterson starred canjs/canjs
  • Mar 24 21:23
    greenkeeper[bot] commented #5469
  • Mar 24 21:23

    greenkeeper[bot] on @octokit

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

  • Mar 24 07:00

    greenkeeper[bot] on webpack-4.42.1

    (compare)

  • Mar 24 06:58

    greenkeeper[bot] on webpack-4.42.1

    chore(package): update webpack … (compare)

  • Mar 21 01:00
    greenkeeper[bot] commented #5469
  • Mar 21 01:00

    greenkeeper[bot] on @octokit

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

  • Mar 20 06:52
    christianfelicite starred canjs/canjs
  • Mar 18 10:30
    dinko starred canjs/canjs
  • Mar 17 19:33

    cherifGsoul on master

    Update dist for release (compare)

  • Mar 17 19:33

    cherifGsoul on v6.4.0

    Update dist for release 6.4.0 (compare)

Kevin Phillips
@phillipskevin
so you can do userPromise.isResolved and also user.name
in the template
Frank Lemanschik
@frank-dspeed
ah nice now i understand
why this is in some examples
i saw that :)
AntonProkofyev
@AntonProkofyev
yep that's what i saw in docs and i can see name when it's resolved...
i've add breakpoint but it gives nothing. just see that Object.defineProperty(map, "_instanceDefinitions", { make an error
and that map constructor is DefineMap
Frank Lemanschik
@frank-dspeed
but do you know a way to reset a value with a interval?
Kevin Phillips
@phillipskevin
@frank-dspeed use a setter
Frank Lemanschik
@frank-dspeed
how you mean that?
i have really no idea about that because for me a setter gets only called on set
and then you mean i can do var x = interval() in the setter
Kevin Phillips
@phillipskevin
foo: {
  value: 1,
  set(val) {
    setTimeout(() => { this.foo+=1 }, 1000);
    return val;
  }
}
Frank Lemanschik
@frank-dspeed
and it gets executed?
and that gets automatic executed?
does the setter get executed with value ?
Kevin Phillips
@phillipskevin
yeah
Frank Lemanschik
@frank-dspeed
ok ok
looks pritty cool
Kevin Phillips
@phillipskevin
@AntonProkofyev can you check what is propand value ?
and walk up the stack to the first place that is in your code
to see what is being called
AntonProkofyev
@AntonProkofyev
can you сlarify plz what you mean by checking what is prop and value
i can see that this defineMap appears somwhere near reflection/get-set
setKeyValue
Kevin Phillips
@phillipskevin
the parameters that function is being called with
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