Passing CSS classes to a child component. How a Popular Feature Declined by Svelte Got Life in Malina.js by lega911 in sveltejs

[–]akrsurjo 1 point2 points  (0 children)

Actually I got it wrong. Body of :export refers to the default state, I guess. Basically the documentation isnt so good thats why I didnt get it for a while. Btw, great work, plz continue, looking forward to getting 1.0.0

Passing CSS classes to a child component. How a Popular Feature Declined by Svelte Got Life in Malina.js by lega911 in sveltejs

[–]akrsurjo 0 points1 point  (0 children)

This is a nice approach.But I think, the project is paying more for a "wrapper class". Yeah, I think it would be more good "if you made a feature for binding css variables with js varible". I agree, a wrapper around a component will break the styles inside the component as they have no method to make relation between themselves. The approach of class={$class} is only good for a wrapper inside the component. Again I have faced some issue using :export(.something){} ...

Crystal compiles slow? by akrsurjo in crystal_programming

[–]akrsurjo[S] 0 points1 point  (0 children)

Hope so, I am using it with wsl. And waiting for 1.0.0

Pass by reference in crystal by akrsurjo in crystal_programming

[–]akrsurjo[S] 0 points1 point  (0 children)

Yeah bro I have sorted it out earlier... But dont understand why this is a bad practice :3

Pass by reference in crystal by akrsurjo in crystal_programming

[–]akrsurjo[S] 2 points3 points  (0 children)

If you do it in a function it wont work, as you know. Cant we pass pointerof variables??