These are chat archives for canjs/canjs

18th
Oct 2018
Jeroen Cornelissen
@jeroencornelissen
Oct 18 2018 08:51
How do you use the equal stacheConverter dynamically?
It converts my string to [object Object]
See this example: https://codepen.io/JeroenC82/pen/wYmeRB?editors=1011
Jeroen Cornelissen
@jeroencornelissen
Oct 18 2018 11:48
@justinbmeyer @frank-dspeed do you have an article about “killing h2 push”?
Justin Meyer
@justinbmeyer
Oct 18 2018 13:07
@jeroencornelissen you have to use everything.mjs
to get converters
I don't have an article, it was part of the convo in Chrome's "Developer Days" conference
Jeroen Cornelissen
@jeroencornelissen
Oct 18 2018 13:09
Ok, thanks. We are looking into H2 at the moment and I heard you talking about it on the podcast.
Sorry, I gave you the wrong codepen:
https://codepen.io/JeroenC82/pen/BqrPwE?editors=1011
Even with everything.mjs, now the equal is known
Justin Meyer
@justinbmeyer
Oct 18 2018 13:11
btw, steal supports a module that makes h2 pushing of its assets pretty easy
steal-push I think
So looking at the example, I think there's a bug ... it works if static 2nd arguments are used
<input type="radio" checked:bind="equal(this.selectedView, 'green')" />
'green' is a "static" value
Justin Meyer
@justinbmeyer
Oct 18 2018 13:17
oh, I wonder if this has been fixed
already
master is properly "resolving" the observable value
but not everything.mjs
something very odd is happening
Jeroen Cornelissen
@jeroencornelissen
Oct 18 2018 13:20
:D , so no need for me to create a ticket?
Justin Meyer
@justinbmeyer
Oct 18 2018 13:42
actually, I was confused
there should be a canReflect.getValue( args.pop() )
@jeroencornelissen please create an issue ... if you are even more amazing ... a PR with that change and a test :-)
Justin Meyer
@justinbmeyer
Oct 18 2018 14:45
Gregg Roemhildt
@roemhildtg
Oct 18 2018 18:05
I'm curious, have you guys ever looked into utilizing wasm in canjs? https://egghead.io/lessons/webpack-course-overview-using-webassembly-with-rust
Jeroen Cornelissen
@jeroencornelissen
Oct 18 2018 20:01
@justinbmeyer canjs/can-stache-converters#95 ;-)
Justin Meyer
@justinbmeyer
Oct 18 2018 20:02
Woo hoo!!
I'll get a release out of that package
soon
today
and then a release of canjs when I've finished these stache docs