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)

Frank Lemanschik
@frank-dspeed
i am not sure
i think it could prevent caching
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.