Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Oct 18 22:20
    greenkeeper[bot] labeled #5391
  • Oct 18 22:20
    greenkeeper[bot] opened #5391
  • Oct 18 22:20

    greenkeeper[bot] on can-observable-mixin-1.0.3

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

  • Oct 18 19:08
    cherifGsoul labeled #5390
  • Oct 18 19:07
    cherifGsoul opened #5390
  • Oct 18 18:45
    greenkeeper[bot] labeled #5389
  • Oct 18 18:45
    greenkeeper[bot] opened #5389
  • Oct 18 18:45

    greenkeeper[bot] on can-observable-bindings-1.3.0

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

  • Oct 18 18:29

    matthewp on master

    Update dist for release (compare)

  • Oct 18 18:29

    matthewp on v6.1.3

    Update dist for release 6.1.3 (compare)

  • Oct 18 17:59

    matthewp on can-observable-array-1.0.2

    (compare)

  • Oct 18 17:59

    matthewp on master

    fix(package): update can-observ… Merge pull request #5388 from c… (compare)

  • Oct 18 17:59
    matthewp closed #5388
  • Oct 18 16:46
    greenkeeper[bot] labeled #5388
  • Oct 18 16:46
    greenkeeper[bot] opened #5388
  • Oct 18 16:46

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

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

  • Oct 18 12:45
    greenkeeper[bot] labeled #5387
  • Oct 18 12:45
    greenkeeper[bot] opened #5387
  • Oct 18 12:45

    greenkeeper[bot] on can-stache-element-1.0.2

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

  • Oct 18 09:49
    chasenlehara edited #5384
Thomas Sieverding
@Bajix
@phillipskevin How does can-view-live handle replacing lists with subsets?
Kevin Phillips
@phillipskevin
it gets a list of patches based on the diff of the two lists
so if you’re replcing with a subset, you should just get remove events
Thomas Sieverding
@Bajix
Sweet! I’ve been hoping that’d make it in for a while
I could rebuild my stuff to just virtualize the set params, couple it w/ can-stream to debounce, then return new Lists from the dynamic set
Man that’s literally been on my wish list for like 3 years
That’s beautiful work :D
can-view-live makes my use-case for can-derive solveable just with can-connect alone
Kevin Phillips
@phillipskevin
awesome
part of what I said isn’t exactly true I guess, you probably won’t get only remove events
Thomas Sieverding
@Bajix
I’d get events based off of the diff
Which is what I want ^^
Kevin Phillips
@phillipskevin
yeah
out of curiousity I was testing it out
and you might get only remove events… but you might not
nevertheless, you get events based off the diff
Thomas Sieverding
@Bajix
I was just thinking… with your earlier example wherein you used an object to do the filter - that would be way more efficient if you were returning a new List with a merged set
Kevin Phillips
@phillipskevin
I’d have to try it out
Thomas Sieverding
@Bajix
get active() { return new List(Object.assign({}, this.__listSet, { active: true })); }
Kevin Phillips
@phillipskevin
I don’t know that I understand listSet well enough… what would that do exactly?
Nico R.
@nriesco

@phillipskevin I saw your example and those are great examples. On knockoutjs you could define the way this kind of “computed” attributes were updated, can you do that in can?

this kind of thing is what I use most often

  get active(){
    return this.filter({complete: false});
  },
  get complete(){
    return this.filter({complete: true});
  },
  get allComplete(){
    return this.length === this.complete.length;
  }
Thomas Sieverding
@Bajix
It’s the set Algebra used to query against
Nico R.
@nriesco
you could for example wait 100 milliseconds before the update or stuff like that
Thomas Sieverding
@Bajix
So you’d be returning a new list that’s a subset of the original list, and you’d just rely that they’d be managed via can-connect
can-stream does that
Nico R.
@nriesco
I’m worried because when dealing with lists of complex objects it would get slow when dealing with small sets of say 30 or 50 causing the application to use a lot of cpu
Kevin Phillips
@phillipskevin
you could do that manually
using an asynchronous getter
but I would wait until you run into an issue like that before doing that kind of thing
most of the time, you should let the event batching system take care of that kind of thing for you
@Bajix wouldn’t this.__listSet tell can-connect that it’s the same list?
Thomas Sieverding
@Bajix
@phillipskevin You’d merge the two sets
Nico R.
@nriesco
@phillipskevin ok thanks!
Kevin Phillips
@phillipskevin
ok @Bajix I’m sure I’ll understand some day
for now I’m going to take your word for it :smile:
Thomas Sieverding
@Bajix
Well that works too
That’s how it works ^
Or at least that would clarify
Kevin Phillips
@phillipskevin
thanks
Thomas Sieverding
@Bajix
@phillipskevin I don’t suppose you could do a release w/ canjs/steal-stache#11 & canjs/can-connect#210 merged?
Kevin Phillips
@phillipskevin
individual releases of those? or a canjs/canjs release?
Thomas Sieverding
@Bajix
Just those
They are forcing an older version of jQuery
Kevin Phillips
@phillipskevin
yeah
sorry, yeah I know that’s the issue
let me see if I can get added to steal-stache
Thomas Sieverding
@Bajix
Cool thanks
Kevin Phillips
@phillipskevin
any reason to use ^3.1.1 || ^2.2.4 instead of 2.x - 3.x