Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Oct 13 15:14
    greenkeeper[bot] commented #5375
  • Oct 13 15:14

    greenkeeper[bot] on core-js-3.3.1

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

  • Oct 13 14:49
    greenkeeper[bot] labeled #5375
  • Oct 13 14:49
    greenkeeper[bot] opened #5375
  • Oct 13 14:49

    greenkeeper[bot] on core-js-3.3.0

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

  • Oct 12 18:35
    matthewp commented #5358
  • Oct 12 18:15
    chasenlehara commented #5358
  • Oct 12 06:41

    greenkeeper[bot] on @octokit

    (compare)

  • Oct 12 06:39

    greenkeeper[bot] on @octokit

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

  • Oct 11 19:01
    m-mujica edited #5374
  • Oct 11 19:01
    m-mujica opened #5374
  • Oct 11 19:00

    m-mujica on update-deep-observable

    Update can-deep-observable to l… (compare)

  • Oct 11 18:55
    m-mujica edited #5365
  • Oct 11 18:54
    greenkeeper[bot] labeled #5373
  • Oct 11 18:54
    greenkeeper[bot] opened #5373
  • Oct 11 18:54

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

    fix(package): update can-deep-o… (compare)

  • Oct 11 16:42
    LakshanKarunathilake starred canjs/canjs
  • Oct 11 14:58
    greenkeeper[bot] labeled #5372
  • Oct 11 14:58
    greenkeeper[bot] opened #5372
  • Oct 11 14:58

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

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

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
i am preparing that production ready at present under the Code Name canes
it merges my effort to drop all the old stuff and layers that are needed by CanJS/DoneJS