These are chat archives for skatejs/skatejs

17th
Aug 2016
Rob Hicks
@robhicks
Aug 17 2016 13:11
Does skatejs handle slotting?
Marco Scannadinari
@marcoms
Aug 17 2016 15:05
@robhicks not too sure about your issues that you mentioned, but the first sounds like a bug. Could you post the relevant backtraces?
Rob Hicks
@robhicks
Aug 17 2016 15:06
@marcoms will do. give me a few minutes.
Marco Scannadinari
@marcoms
Aug 17 2016 15:07
Also I may be wrong but shouldn't it be style={styles.container} without quotes in your jsx example?
Rob Hicks
@robhicks
Aug 17 2016 15:07
yes, you’re right.
Rob Hicks
@robhicks
Aug 17 2016 15:59
@marcoms I was wrong about the first issue I was seeing. “el” inside of skate.ready is an object and it has a value for config, but it is an empty string. I suppose it is an empty string because the deseriale function didn’t work. I get a syntax error: error SyntaxError: Unexpected end of JSON input(…)
Marco Scannadinari
@marcoms
Aug 17 2016 16:10
@robhicks Hmm looks like because el.config's value is "" as the default for skate.prop.string, JSON.parse("") will cause that SyntaxError. Maybe add a default value of an empty JSON object?
@robhicks re: slotting, skate uses shadow DOM which uses <slot>, so slotting should work as per the spec. For browsers that dont support shadow DOM you will probably need to use a polyfill like webcomponentsjs
Rob Hicks
@robhicks
Aug 17 2016 16:52
@marcoms I’ll give both a try. Thanks.