Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Nov 06 22:23
    Jason-Cooke commented #1572
  • Nov 06 19:40

    treshugart on master

    docs: fix typo Merge pull request #1572 from J… (compare)

  • Nov 06 19:40
    treshugart closed #1572
  • Nov 06 19:40
    treshugart commented #1572
  • Nov 06 19:25
    now[bot] commented #1572
  • Nov 06 19:25
    now[bot] commented #1572
  • Nov 06 19:24
    now[bot] commented #1572
  • Nov 06 19:24
    now[bot] commented #1572
  • Nov 06 19:24
    Jason-Cooke opened #1572
  • Oct 27 10:52
    jogibear9988 opened #1571
  • Oct 13 04:43
    kimjs3550 edited #1570
  • Oct 13 04:40
    kimjs3550 opened #1570
  • Sep 04 16:35
    treshugart commented #1569
  • Sep 04 16:34
    treshugart commented #1568
  • Aug 27 13:16
    gseerden opened #1569
  • Aug 26 01:28
    akoushke opened #1568
  • Jul 21 11:09
    now[bot] commented #1567
  • Jul 21 11:05
    treshugart synchronize #1567
  • Jul 21 11:05

    treshugart on react-ssr

    Update styles. (compare)

  • Jul 13 07:24
    now[bot] commented #1567
Janne Siera
@jannesiera
does that make sense?
Alexandre Theodoro da Silva
@alexandrethsilva
ah I see what you're trying to say...
I think I see.
but then I'd have to do that imperatively instead of declaratively at the time of the tag definition right?
so I think that's one of my issues, because I wanted to have just the definition being rendered with the chart specs directly every time
Janne Siera
@jannesiera
okay, so if you want declarative syntax it becomes about the templating language
Alexandre Theodoro da Silva
@alexandrethsilva
but your solution would work too indeed if i'd go that way
Janne Siera
@jannesiera
I don't know what SkateJS uses exactly
how's it called, hyper-something?
Alexandre Theodoro da Silva
@alexandrethsilva
yeah, i think so
Janne Siera
@jannesiera
If you take JSX for example, it translates declarative syntax into imperative syntax
React for example will always set properties
I'm assuming this one will do the same, but I don't know
Alexandre Theodoro da Silva
@alexandrethsilva
oh really? that's interesting. didn't know it
'Note that hyperscript sets properties on the DOM element object'
there you go
Alexandre Theodoro da Silva
@alexandrethsilva
nice!
man, really nice convo. thanks a lot
Janne Siera
@jannesiera
No problem, it can be a bit confusing in the beginning
Alexandre Theodoro da Silva
@alexandrethsilva
i'll have a look at it and see if i untangle myself :smile:
Janne Siera
@jannesiera
basically if i were you:
Alexandre Theodoro da Silva
@alexandrethsilva
yeah, I guess the docs leave a few things in the air for the newcomers
i should probably make a contribution once i figure it out and maybe make it a bit more comprehensive over there
Janne Siera
@jannesiera
If the components are only for your 'own' use: Don't bother reflecting attributes. Just write your components, all 'attributes' you declaratively set on your components will be set as properties. Just go on and build your stuff.
Alexandre Theodoro da Silva
@alexandrethsilva
yeah, sounds like the way to go indeed
thanks again bud
Janne Siera
@jannesiera
(y)
Trey Shugart
@treshugart

@jannesiera @alexandrethsilva

React for example will always set properties

React always sets attributes. It’s a major issue for interiop. Some links:

Skate 4.x uses Incremental DOM. Skate 5.x becomes agnostic. There’s already three official renderers sketched out:
Trey Shugart
@treshugart
Depending on what lib you use for rendering, your mileage for setting props will vary. They all have different heuristics and syntaxes. https://github.com/skatejs/val can help abstract hyperscript libs.
Alexandre Theodoro da Silva
@alexandrethsilva
@treshugart thanks a lot for this info! that's some very good insight right there
Janne Siera
@jannesiera
@treshugart thanks for correcting me on that one. I do believe angular sets properties except for when you use : syntax before the attribute name, then it will actually set the attribute. Again, not a hundred percent sure tho.
Janne Siera
@jannesiera
@trusktr thanks for the input. I'll keep that in mind. So far I haven't had any issues with that but I'm sure I'll run into them at some point.
Last weekend I recreated the React fiber Sierpinski Triangle demo that was also shown in the Stencil presentation. I'm super impressed by it's performance when using web components in combination with virtual dom! I didn't implement anything like deffered updates but with the perfromance of web components vs react I find it hard to imagine a case where I might use it.
Any plans to re-create that demo with SkateJS?
Or the fractal tree one?
kazuhiro hara
@karad
hello, I wrote a blog entry for building skatejs application with webpack / babel (but in japanese). https://qiita.com/kara_d/items/b269bb73cc6e6d01eb9e
Alexandre M. Reis
@alexmreis
hey folks... I'm starting a new Skate.js based project and was looking for a starter project that already has webpack configured to do all the needed magic. The two starters I've found either use Flow or TypeScript, i just want ES6 + webpack + skate.js. Does anyone know if there is one?
Bruce B. Anderson
@bahrus
That would be great to see, especially if it's a pwa using the skate router.
Alexandre M. Reis
@alexmreis
Just tried the yeoman generator, that is really, really broken lol. None of the dev dependencies are in the package.json and the code it generates doesn't even compile with babel. Oh well, guess I'll start from scratch and publish my starter @bahrus. Will definitely end up using the skate router, but not sure if I'll go the progressive route
Trey Shugart
@treshugart
@alexmreis can you report the issue to the Yeoman generator repo, please? I’m sure Alex would like a chance to fix it.
Alexandre M. Reis
@alexmreis
@treshugart #23 #24 #25 #26
on the generator repo, so links here won't work
Trey Shugart
@treshugart
Thanks @alexmreis
Micah
@micahscopes
hey, I fixed an issue with the yeoman generator
made a pull request
@alexmreis skatejs/generator-skatejs#28
the problem is that I still can't get the storybook to show my component
@treshugart I love where this project has gone since I last used it... much cleaner!
that said, what's your outlook on the API stabilizing? :smile: