Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Oct 14 21:13
    greenkeeper[bot] labeled #5378
  • Oct 14 21:12
    greenkeeper[bot] opened #5378
  • Oct 14 21:12

    greenkeeper[bot] on can-simple-map-4.3.3

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

  • Oct 14 20:19
    greenkeeper[bot] labeled #5377
  • Oct 14 20:19
    greenkeeper[bot] opened #5377
  • Oct 14 20:19

    greenkeeper[bot] on @feathersjs

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

  • Oct 14 20:18
    greenkeeper[bot] labeled #5376
  • Oct 14 20:18
    greenkeeper[bot] opened #5376
  • Oct 14 20:18

    greenkeeper[bot] on @feathersjs

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

  • Oct 14 14:43
    greenkeeper[bot] closed #5373
  • Oct 14 14:43

    greenkeeper[bot] on can-deep-observable-1.0.1

    (compare)

  • Oct 14 14:42

    m-mujica on update-deep-observable

    (compare)

  • Oct 14 14:42

    m-mujica on master

    Update can-deep-observable to l… Merge pull request #5374 from c… (compare)

  • Oct 14 14:42
    m-mujica closed #5374
  • Oct 14 14:42
    m-mujica closed #5365
  • Oct 14 14:09
    f-ricci starred canjs/canjs
  • Oct 14 13:55
    greenkeeper[bot] commented #5375
  • Oct 14 13:55

    greenkeeper[bot] on core-js-3.3.2

    chore(package): update core-js … (compare)

  • Oct 14 10:51
    m-mujica review_requested #5374
  • Oct 14 07:43
    rjgotten commented #5358
Kevin Phillips
@phillipskevin
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
Thomas Sieverding
@Bajix
When I had tested it on steal-stache, 2.x - 3.x was installing 2.2.4, but perhaps that was from the circular reference with can-view-imports
There doesn’t seem to be any good reason to support older 3.x or 2.x
I was hoping that this syntax would be better for Travis CI