Where communities thrive


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

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

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

  • Nov 19 17:27
    greenkeeper[bot] labeled #5428
  • Nov 19 17:27
    greenkeeper[bot] opened #5428
  • Nov 19 17:27

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

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

  • Nov 19 16:49
    cherifGsoul opened #5427
  • Nov 19 16:39

    cherifGsoul on obserbale-properties-update-debugging-guid

    (compare)

  • Nov 19 16:39

    cherifGsoul on master

    Remove ViewModel wording from d… Fix observable properties wordi… Fix typo and 2 more (compare)

  • Nov 19 16:39
    cherifGsoul closed #5425
  • Nov 19 16:29
    cherifGsoul synchronize #5425
  • Nov 19 16:29

    cherifGsoul on obserbale-properties-update-debugging-guid

    Fix another typo (compare)

  • Nov 19 15:25
    cherifGsoul synchronize #5425
  • Nov 19 15:25

    cherifGsoul on obserbale-properties-update-debugging-guid

    Fix typo (compare)

  • Nov 19 10:20
    greenkeeper[bot] labeled #5426
  • Nov 19 10:20
    greenkeeper[bot] opened #5426
  • Nov 19 10:19

    greenkeeper[bot] on can-attribute-observable-2.0.2

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

  • Nov 18 21:05

    nlundquist on master

    Update dist for release (compare)

  • Nov 18 21:05

    nlundquist on v6.2.6

    Update dist for release 6.2.6 (compare)

  • Nov 18 20:22
    cherifGsoul review_requested #5425
  • Nov 18 20:22
    cherifGsoul commented #5425
Kevin Phillips
@phillipskevin
it probably means that a parent sets a child and the child then tries to set the parent in a cycle
there is actually some ongoing discussion around this warning
Kevin Phillips
@phillipskevin
as discussed on that issue, there might be a bug here
so if you have cases that cause this warning that you think are not real issues, please let us know @roemhildtg @nmingneau
Justin Meyer
@justinbmeyer
yeah, I'm about to publish some better logging on it
nmingneau
@nmingneau
Hi, using assigndeep solved it in my case because the reference is preserved. Not exactly sure why the DefineMap became not settable. The update happened in a route listener in a separately loaded bundle.
Gregg Roemhildt
@roemhildtg
Awesome job on the new vm debug tools guys!
Figured I'd share this with the community
It looks and works amazingly well
drag-resize.gif
Gregg Roemhildt
@roemhildtg
I guess my only suggestion would be a smaller font size perhaps
Kevin Phillips
@phillipskevin
Awesome @roemhildtg. Glad it's working well for you.
Gregg Roemhildt
@roemhildtg
:clap:
Kevin Phillips
@phillipskevin
I'll be tweaking the UX over the next couple days, so I'll bump down the font a bit
there are a couple open issues here: https://github.com/canjs/can-devtools-components/issues that I'm working on
if you find anything else, please feel free to open issues
Gregg Roemhildt
@roemhildtg
Kevin Phillips
@phillipskevin
yeah, that's annoying
if you right click in the devtools panel and click "reload frame" it fixes it
obviously, not a great workaround :smile:
Gregg Roemhildt
@roemhildtg
That's what I'm doing for now. It works fine, but yeah eventually a nice polished devtools will be good, which I'm sure you'll get to. I mean its already so much easier to debug than a year ago, and having the viewmodel editor makes it a lot easier to get others up to speed on the stuff I'm working on
Good documentation is one thing...but being able to play with the viewmodel in dev tools makes it super simple
Kevin Phillips
@phillipskevin
:thumbsup: we'll keep improving it
Gregg Roemhildt
@roemhildtg
I'm thinking I might even build the viewmodel editor into demo projects.
Kevin Phillips
@phillipskevin
yeah, I'm going to post on the forums how to add it to demo pages
Gregg Roemhildt
@roemhildtg
Not sure how feasible that is at the moment but having a sort of editor like some libs have would be a really nice tool
Kevin Phillips
@phillipskevin
it's not too bad to add to demo pages
Gregg Roemhildt
@roemhildtg
Okay :)
I wonder, like down the road could the view model editor get passed a tag, like componentSelector:raw="my-component"
And then the viewmodel editor would just pick that component's viewmodel?
That would make it super easy to embed in a demo
Kevin Phillips
@phillipskevin
yeah, that would be tough
well, we could create a component that wraps the current one and does that
but for it to work in devtools it can only take in serialized data
Kevin Phillips
@phillipskevin
same-comp-fix.gif
@roemhildtg here's the fix for that issue... I'm going to put the index of that element in the tagName
and reset the data when the tagName changes
Viktor Busko
@Lighttree
Guys is there big difference between such getters in VM ?
get someProp() {
        return 'something';
},

// VS

someProp: {
    get() {
         return 'something';
    }
}
Maybe some preferences when to use
kostya.aderiho
@kaderiho

Hi guys, is there any way to save DefineList data on the server using PUT request?

For instance:

const Todo = DefineMap.extend({ ... some properties ... });

Todo.List = DefineList.extend({ "#": Todo });

let TodosList = new Todo.List([ ...several items there... ]);

// send PUT request here with TodoList inside of the body

Thank you in advance

Matthew Phillips
@matthewp
are you using can-rest-model?
kostya.aderiho
@kaderiho
So I'm using canjs v3 and can-connect as a middleware for data layer
Matthew Phillips
@matthewp
ok cool
so when you call .save() what happens?
Oh, do you mean you need it to use PUT even for new items?
kostya.aderiho
@kaderiho
I need to use PUT for already retrieved items by .getList method. If I understand correctly I can not do TodoList.save() because .save works for one instance only
Matthew Phillips
@matthewp
why can't you do todoList.forEach(todo => todo.save()) ?