Where communities thrive


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

    greenkeeper[bot] on core-js-3.4.2

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

  • Nov 20 19:48

    phillipskevin on master

    Update dist for release (compare)

  • Nov 20 19:48

    phillipskevin on v6.2.7

    Update dist for release 6.2.7 (compare)

  • Nov 20 19:30

    phillipskevin on six-two-seven

    (compare)

  • Nov 20 19:30
    phillipskevin closed #5431
  • Nov 20 19:19
    phillipskevin synchronize #5431
  • Nov 20 19:19

    phillipskevin on six-two-seven

    updating dependencies (compare)

  • Nov 20 18:53
    cherifGsoul review_requested #5432
  • Nov 20 18:52
    cherifGsoul opened #5432
  • Nov 20 18:49

    cherifGsoul on update-api-page

    Update API page (compare)

  • Nov 20 17:17
    phillipskevin opened #5431
  • Nov 20 17:17

    phillipskevin on six-two-seven

    updating dependencies (compare)

  • Nov 20 17:11
    cherifGsoul synchronize #5430
  • Nov 20 17:11

    cherifGsoul on update-infrastructure-page

    Update can-queues part (compare)

  • Nov 20 17:08
    cherifGsoul opened #5430
  • Nov 20 17:06

    phillipskevin on can-attribute-observable-2.0.2

    (compare)

  • Nov 20 17:06

    phillipskevin on master

    fix(package): update can-attrib… Merge pull request #5426 from c… (compare)

  • Nov 20 17:06
    phillipskevin closed #5426
Kevin Phillips
@phillipskevin
obviously it would be nicer if your helper could just return an observable
Kevin Phillips
@phillipskevin
I opened an issue @Lighttree: canjs/can-stache#585
Viktor Busko
@Lighttree

would it be possible to set up the attributes a different way?

Yep, I think as temporary solution this will work.

I opened an issue @Lighttree: canjs/can-stache#585

Great, thank you !

Guido Smeets
@gsmeets
anyone here that has experience optimizing stache templates? basically what I want to do is move some template stuff to helpers in order to reduce the number of extra scopes that are created. Specifically I want to be able to wrap a fragment inside another html snippet before returning it from a helper. (maybe @justinbmeyer or @matthewp ?)
Matthew Phillips
@matthewp
I've never done that personally... but helpers would be a way to escape from stache in hot areas...
Justin Meyer
@justinbmeyer
Are extra scopes a perf problem?
Guido Smeets
@gsmeets
well I'm creating a table with pagination here
going from not rendering the table body to rendering it is going from 25-50ms on page swapping to 200-350ms
so I was hoping to avoid some subtemplate calls and scope creation by optimizing
Justin Meyer
@justinbmeyer
are you sure it's the scope creation?
I guess if you have some time, @gsmeets , I'd love to see your app and do some profiling
Justin Meyer
@justinbmeyer
or, if you could export the profiling and send it to me, that would be awesome too
Guido Smeets
@gsmeets
@justinbmeyer sure, I got time
It seems about 100ms is just rendering the table cell contents
so I'm wondering if there's actually any way to speed that up
Gregg Roemhildt
@roemhildtg
Did something break recently with can-stache each loops?
{{#each(objects, object=value)}}
{{#each(scope.vm.fields, field=value)}}
{{../object[field]}} // not working because object is undefined?
{{/each}}
{{/each}}
Kevin Phillips
@phillipskevin
@roemhildtg can you run npm ls --depth=0
and paste the results
Gregg Roemhildt
@roemhildtg
I think I know what the issue is. I deleted my package-lock.json and node_modules and updated to try and fix some webpack issue I was having
I got the latest can-stache 4.11 then, which maybe changed syntax?
Kevin Phillips
@phillipskevin
shouldn't have
I'll take a look
Kevin Phillips
@phillipskevin
definitely a bug in can-stache or can-view-scope
going back to can-stache@4.10.5 and can-view-scope@4.7.1 works
we'll look into this right away, thanks for reporting
Gregg Roemhildt
@roemhildtg
Sounds good :100:
Julian
@pYr0x
is conncet.tag deprecated?
https://github.com/canjs/can-connect/blob/master/all.js should contain connect.tag = require('./can/tag/tag');
i can create a hotfix if you want
Julian
@pYr0x
this indexNum helper is not working anymore
scope.indexNum should be indexNum ?
Matthew Phillips
@matthewp
@pYr0x yeah, it was removed from 3.x
it's there now
Julian
@pYr0x
so why the source is still in master branch?
Julian
@pYr0x
@justinbmeyer @phillipskevin is it not possible to use </content> to own a inner html block as the view and pass the VM to this view
it would be nice to have some html file that has a custom compnent (e.g. <x-import>) and its content is the stache view and the VM gets passed into this view
currently, <x-entnahmestelle-list> will be rendered but {{bar}} or vm:msg:to="bar"will not work
it does not have to content maybe some new special tag
^^ New can-route is out which makes using it much easier thanks to DefineMap.
No more serialize: false!!!
Gregg Roemhildt
@roemhildtg
Question - in the newest can-stache does #with still create a new scope?
I know #for of does not
Kevin Phillips
@phillipskevin
#with does, yes
we're going to add a #let helper that can be used like #with but without creating a new scope