DX tool for designing truly encapsulated React components.
People
Repo info
Activity
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..
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
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
@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...