Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Sergey Lapin
    @sergey-lapin
    @skidding I am running this issue http://joxi.ru/ZrJjXwdUM8Wwrj using cosmos.commonjs
    Sergey Lapin
    @sergey-lapin
    @skidding Hah it was silly issue with lodash, but I still can not use cosmos 0.5.0. I build dev common js cosmos, now I am getting http://joxi.ru/eAO67wRipVDL2o. I guess playground changed and now I can hardly understand what is happening=(Is that valid "cosmos\examples\component-playground\component-playground.html" - http://joxi.ru/nAy6qybijDbOrZ ?
    Ovidiu Cherecheș
    @skidding
    yes, the example is valid but it looks kinda weird because component playground loads component playground..
    it's weird that props.component is undefined. it should contain the name of the component (see https://github.com/skidding/cosmos#component-lookup)
    but the ComponentPlayground populates it automatically so you don't have to add it in the fixture: https://github.com/skidding/cosmos/blob/master/components/component-playground.jsx#L94
    can you show me the fixturePath from the url for the screenshot you posted
    ?
    Ovidiu Cherecheș
    @skidding
    localhost is on your machine, can't open that :)
    Sergey Lapin
    @sergey-lapin
    Yeah) I just use your example, you can run it on your machine ;)
    Or you want me to host it?
    Ovidiu Cherecheș
    @skidding
    it runs just fine on my machine. doesn't throw any error
    Sergey Lapin
    @sergey-lapin
    I don have any error either it just looks weird and wrong
    Ovidiu Cherecheș
    @skidding
    it's because it loads an component playground inside a component playground inside a component playground. It has to stop at the 3rd level otherwise it would be an infinite loop
    I'm curious why did your project stop working though
    Sergey Lapin
    @sergey-lapin
    you mean that I have only 2 levels?
    Ovidiu Cherecheș
    @skidding
    the 3rd level is meant to be blank in the cosmos example, it's the same for me
    Sergey Lapin
    @sergey-lapin
    "// The Component Playground inside itself might not be the best example :)" - totaly agreed =)
    Ovidiu Cherecheș
    @skidding
    :D
    Sergey Lapin
    @sergey-lapin
    It is really ambigues, and looks like something is broken
    May be you use something simple like https://github.com/lapanoid/hot-cosmos/tree/master/components ?
    If you implement some simple example it would be really helpful for me to understand how it should work
    Ovidiu Cherecheș
    @skidding
    we'll I'm trying to integrate it in a project that has hundreds of fixtures using Cosmos, but no component playground
    after that I might learn a few things that need to be tweaked as well on the playground
    still. you're saying it worked with 0.4.0 and doesn't work with 0.5.0?
    Sergey Lapin
    @sergey-lapin
    Not exactly I picked cosmos 0.4.0 and modified for my "hot" needs
    Ovidiu Cherecheș
    @skidding
    because the playground example was the same before the upgrade...
    Sergey Lapin
    @sergey-lapin
    Nothing special I just solved a couple issues, I dont deeply understand cosmos yet=(
    Sergey Lapin
    @sergey-lapin
    @skidding I assume this \cosmos\examples\component-playground\component-playground.html - general example that show all power of cosmos, but it is complicated, some really primitive example would be nice
    Ovidiu Cherecheș
    @skidding
    yeah, you're right
    should come with a few dummy components to showcase
    Sergey Lapin
    @sergey-lapin
    @skidding I added demo gif https://github.com/lapanoid/hot-cosmos )
    Ovidiu Cherecheș
    @skidding
    sweet!
    afilp
    @afilp
    anybody here?
    Sergey Lapin
    @sergey-lapin
    Yep
    Ovidiu Cherecheș
    @skidding
    here
    Ovidiu Cherecheș
    @skidding
    @lapanoid curious if you got the chance to see the restructured Cosmos 0.6 https://github.com/skidding/cosmos – it now has hot reloading built-in, added by react-hot-loader's creator himself skidding/cosmos#127 :)
    Sergey Lapin
    @sergey-lapin
    Great news and great work=) All looks much more solid since I looked last time)
    I keep in mind to try 0.6 just have a lot of backend work now
    Ovidiu Cherecheș
    @skidding
    thanks. worked a bit for the last weeks to make it as simple as possible to use
    Sergey Lapin
    @sergey-lapin
    I played with flux a little bit, it is really cool especially that you can just replay events to get state of app, maybe it can be useful for cosmos in some way?
    For some sequence of events -> render component -> maybe compare with previous component snapshot
    Sergey Lapin
    @sergey-lapin
    @skidding
    Ovidiu Cherecheș
    @skidding
    going back and forth through variations of component snapshots does sound cool indeed. this way you could also test transitions between one state and another
    Sergey Lapin
    @sergey-lapin
    Yep
    React render is pretty fast so no need to even store snapshot
    Ovidiu Cherecheș
    @skidding
    and getting a flux + cosmos setup is something I want to try out pretty bad, but I didn't get the change to get fully immersed in any flux implementation so far...