Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 01:04
    greenkeeper[bot] commented #5392
  • 01:04

    greenkeeper[bot] on core-js-3.5.0

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

  • Dec 11 18:34
    greenkeeper[bot] labeled #5444
  • Dec 11 18:34
    greenkeeper[bot] opened #5444
  • Dec 11 18:34

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

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

  • Dec 11 18:30

    cherifGsoul on update-infrastructure-page

    (compare)

  • Dec 11 18:30

    cherifGsoul on master

    Update infrastructure page with… (compare)

  • Dec 11 18:30
    cherifGsoul closed #5441
  • Dec 11 18:30
    cherifGsoul closed #5417
  • Dec 10 17:40
    cherifGsoul review_requested #5443
  • Dec 10 16:47
    cherifGsoul review_requested #5441
  • Dec 10 16:35
    cherifGsoul synchronize #5441
  • Dec 10 16:35

    cherifGsoul on update-infrastructure-page

    Fix typos (compare)

  • Dec 10 10:01
    jkeruzec starred canjs/canjs
  • Dec 09 18:59
    cherifGsoul review_requested #5443
  • Dec 09 18:59
    cherifGsoul opened #5443
  • Dec 09 18:51

    cherifGsoul on document-inserted-removed-can6

    Add inserted/removed events to … (compare)

  • Dec 09 15:38
    greenkeeper[bot] labeled #5442
  • Dec 09 15:38
    greenkeeper[bot] opened #5442
  • Dec 09 15:38

    greenkeeper[bot] on can-view-live-5.0.1

    fix(package): update can-view-l… (compare)

Frank Lemanschik
@frank-dspeed
it has infinity history and search
as far as i remember
Justin Meyer
@justinbmeyer
basically, the .save() on a list would need to update the instances correctly
there's a way to do that
Frank Lemanschik
@frank-dspeed
dispatch
Justin Meyer
@justinbmeyer
it's not dispatch
(though a dispatch happens)
I'd look it up but in the middle of something
Frank Lemanschik
@frank-dspeed
i saw in some examples that there was custom dispatch on stuff like
can-define backup
thats why i got that idea
Justin Meyer
@justinbmeyer
essentially you would need to re-create what the normal .save() does on every item in the list
Frank Lemanschik
@frank-dspeed
thats correct
it will call some defineMap methods
maybe set ? update somestuff like that
i use that methods when i don't use can connect
to directly update instances
or save maybe as i remember uses the methods
added by can connect
!
this are the right api's i think to tigger updates
the crud methods
Mike 'mitch' Mitchel
@mikemitchel
added the .sort method back to can-list 4.2.0
https://github.com/canjs/can-list/releases/tag/v4.2.0
kostya.aderiho
@kaderiho
according to your comments @frank-dspeed @justinbmeyer I need to write custom implementation updateListData in order to send one PUT request with list inside of body?
Frank Lemanschik
@frank-dspeed
right
@kaderiho
kostya.aderiho
@kaderiho
okey, thanks everyone
Gregg Roemhildt
@roemhildtg
Hi guys, did logging change in a recnet version of can-stache?
I'm seeing lots of new logs (in a production webpack build).
image.png
Sorry, that wasn't in a production build. Nevermind that message :0
Kevin Phillips
@phillipskevin
@Lighttree, about :point_up: October 31, 2018 5:34 AM
There is no difference between those get syntaxes
I always use get someProp() { ... } unless I need to pass arguments (for async getters)
then it has to be
someProp: {
  get(lastSet, resolve) {
    // ...
  }
}
the standard getter syntax (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/get) doesn't allow arguments
Jeroen Cornelissen
@jeroencornelissen
@matthewp @justinbmeyer @frank-dspeed yes, looks like that was my code with some additions from Justin.
We kind of stopped using can-connect, because our backend now is more event-driven. So we have an endpoint for almost every property on a model, eg /item/change-color or /item/change-title, … So we just can’t call save or destroy, we now use a custom “http-handler” and update the props on our model or do a splice/push on a Model.List.
Frank Lemanschik
@frank-dspeed
@jeroencornelissen its a bit like me
i also stream my changes into the Maps and Lists my self
else i could not add behavior as needed
@jeroencornelissen i need to play more with the symbol interface the others added i think justin was that
this should enable to do custom stuff more easy via some key symbols like onValue but i still don't full get what kind of API design this should be
:D
so i started refactoring canjs to canes to be more readable and understand able
Jeroen Cornelissen
@jeroencornelissen
What do you mean, stream changes into Maps?
Frank Lemanschik
@frank-dspeed
@jeroencornelissen i use for every application always streams so i have a stream that sets and reads values into a can.DefineMap Instance
for example
so i have a stream interface into and out of my DefineMaps and Lists