These are chat archives for canjs/canjs

11th
Sep 2018
Justin Meyer
@justinbmeyer
Sep 11 2018 00:29
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
Sep 11 2018 00:37
or, if you could export the profiling and send it to me, that would be awesome too
Guido Smeets
@gsmeets
Sep 11 2018 07:28
@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
Sep 11 2018 15:26
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
Sep 11 2018 15:43
@roemhildtg can you run npm ls --depth=0
and paste the results
Gregg Roemhildt
@roemhildtg
Sep 11 2018 15:45
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
Sep 11 2018 15:46
shouldn't have
I'll take a look
Kevin Phillips
@phillipskevin
Sep 11 2018 15:56
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
Sep 11 2018 15:59
Sounds good :100:
Julian
@pYr0x
Sep 11 2018 17:08
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
Sep 11 2018 17:36
this indexNum helper is not working anymore
scope.indexNum should be indexNum ?
Matthew Phillips
@matthewp
Sep 11 2018 20:14
@pYr0x yeah, it was removed from 3.x
it's there now
Julian
@pYr0x
Sep 11 2018 20:57
so why the source is still in master branch?
Julian
@pYr0x
Sep 11 2018 21:53
@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