Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 05:21

    greenkeeper[bot] on steal-2.2.4

    chore(package): update steal to… (compare)

  • Oct 21 18:27
    greenkeeper[bot] labeled #5392
  • Oct 21 18:27
    greenkeeper[bot] opened #5392
  • Oct 21 18:27

    greenkeeper[bot] on core-js-3.3.3

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

  • 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)

Dovid Bleier
@dbleier
@jeroencornelissen I don't think so, this is not a define property, it's something being passed into can-connect, so I don't know where you would specify serialize:false
Jeroen Cornelissen
@jeroencornelissen
aah ok, I thought serialnumber was a property of your model
Dovid Bleier
@dbleier
no, not in this case
sounds like this is a question for the core canjs team
Frank Lemanschik
@frank-dspeed
yes i think so too
Dovid Bleier
@dbleier
I always see @justinbmeyer discussing it on any can-set related video, maybe he can weigh in
Frank Lemanschik
@frank-dspeed
yes he is probally the one and only who can use canjs :)
i always wonder what is the missing part that he knows that all others don't know
Brad Momberger
@bmomberger-bitovi
@dbleier it sounds like your cache connection may need to use a different algebra from the one used by your main connection. The page for the cache-requests behavior doesn't explicitly say this, but you could configure your cache connection to use an algebra that ignores serial number while using one for your main connection that doesn't ignore it. https://canjs.com/doc/can-connect/cache-requests/cache-requests.html
Pedro Mendes
@pmgmendes
Hi all.
Is it possible to setup a model layer with the instance store and caching layer synchronized?
I've lay down my expectations about this in the doneJS forum
Thanks!
Frank Lemanschik
@frank-dspeed
possible yes i am sure
Guido Smeets
@gsmeets
anyone got any experience integrating a pubsub library like postal into a canjs drive application?
Szabolcs Schmidt
@sszabolcs

When binding a property on child component do I have to transform child property name from camel case?
From this:

<child-comp {{childProp}}="propOnParent" />

To this:

<child-comp {{child-prop}}="propOnParent" />

I'm using CanJS 3.8.0 with DefineMaps on both parent and child side.

Kevin Phillips
@phillipskevin
Yes, you do @sszabolcs
Szabolcs Schmidt
@sszabolcs
Thanks @phillipskevin
Justin Meyer
@justinbmeyer
@dbleier weigh in on what?
Brad Momberger
@bmomberger-bitovi
My take on the problem is https://gitter.im/canjs/canjs?at=592d95d50a783b6c0aecc10e but you may have better insight on it.
Justin Meyer
@justinbmeyer
Yeah, I think you are right @bmomberger-bitovi . @dbleier check this out: http://canjs.com/doc/can-set.html#SolvingCommonIssues
Matthew Phillips
@matthewp
Gregg Roemhildt
@roemhildtg
@gsmeets I'm using pubsub-js in a canjs app. Just for simple message publishing though, to notify user of async success and failure events.
Gregg Roemhildt
@roemhildtg
I'm running into an error involving can-stache-bindings and can-view-model.
can-stache-bindings data is calling canViewModel on an element, and for some reason that element has a .length property, which throws an error in can-view-model
Its happening in a stache template where a select dropdown has a two way binding like this: {($value)}="value"
Brad Momberger
@bmomberger-bitovi
Are you using can-jquery/legacy?
Gregg Roemhildt
@roemhildtg
Nope, I mean jquery is used in various places for ajax, but not can-jquery
Brad Momberger
@bmomberger-bitovi
Hm.. You're right, it looks like can-view-model does an isArrayLike test on the element and unboxes it to the 0-index if so.
Should file a bug on that.
Trying to think of a workaround until we fix that, but the best I can think of is to set the property "0" on the element to point back to itself.
What kind of element is it?
Gregg Roemhildt
@roemhildtg
Its a <select> element. But its burried in a component structure. Its weird because if I set a break point there, this is the only element that actually has a length property. I don't think its typical to have an element with a .length prop...
image.png
Brad Momberger
@bmomberger-bitovi
May we see your tag HTML that creates that select?
(stache bindings included)
Gregg Roemhildt
@roemhildtg
<select {($value)}="value" class="form-select form-control" name="{{properties.name}}">
    {{#each properties.options}}
        <option value="{{value}}">{{label}}</option>
    {{/each}}
</select>
Brad Momberger
@bmomberger-bitovi
I can definitely replicate this result in a JSBin. https://jsbin.com/jiqegoxudi/edit?html,js,console,output
Let me see if I can figure out where it's happening.
Gregg Roemhildt
@roemhildtg
hm, yes the tricky part
Brad Momberger
@bmomberger-bitovi
It's not us doing this; it seems like select elements always have a numeric length.
(equal to the number of options)
So I think the safest thing to do is to check in canViewModel whether el is an instance of Node and short-circuit the arraylike test.
Gregg Roemhildt
@roemhildtg
Mmhm that makes sense
Brad Momberger
@bmomberger-bitovi
Though, could you paste in a stack trace and the conditions where it throws? I am not seeing errors thrown in the JSBin when rendering or changing the select value
Gregg Roemhildt
@roemhildtg
Its quite a large stack trace, I'll make a pastebin
You have to call canViewModel on that element. Then it throws the error
Although I'm not calling canViewModel directly, can-stache-bindings does in the data method
Brad Momberger
@bmomberger-bitovi
Just FYI, it should be lastElementChild, as lastChild is a text node.
A-ha! I see what happened here. This is something that broke in 3.2.0 because we added support for jQueries.
There you go. You can downgrade to can-view-model 3.1.3 which doesn't do array-like or string selector checks until we get the fix in.