Fork me on GitHub
#re-frame
<
2016-03-17
>
Macroz09:03:32

anybody using re-frame with devcards?

danielcompton09:03:46

@macroz: about to start in the next few days, keen to hear from others

Macroz09:03:58

I mean there isn't any support for it yet, or is there?

Macroz09:03:16

I just use devcards-like approach where I have a "component guide" page where I show how all the components are used

Macroz09:03:30

the same approach I use in React/Relay app also

Macroz09:03:57

normal purely functional components are easy

Macroz09:03:10

but container components with access to subscriptions need special handling

Macroz09:03:25

so at the moment I don't use devcards, nor do I include container components

Macroz09:03:30

so my components are always in a fixed state because they have no access to dynamic state, which would come from re-frame

Macroz09:03:51

in devcards one can interact with the components as well because it handleds the app atom

hugobessaa10:03:10

@macroz: I believe you can simply bootstrap your application inside devcards and it will work as expected. no magic there

hugobessaa10:03:55

I'm using devcards as a component guide too. So container components doesn't need to be there

Macroz10:03:56

I would prefer some magic here simple_smile

Macroz10:03:53

for example if you want to automate your UI tests inside your component guide you need interaction

Macroz10:03:14

and it's much nicer to also read the component guide and be able to get a feel of the interaction as well

hugobessaa12:03:22

I implement this kind of interaction with simple atoms at devcards

hugobessaa12:03:33

I just made a gif for a PR

hugobessaa12:03:16

this is running inside devcards

drapanjanas13:03:50

Hi, recently I was implementing some real-time features like messaging in my re-frame app using a WebSocket for pushing re-frame events to clients. That might be also interesting to other developers. I have put my solution (very experimental draft) to github. https://github.com/drapanjanas/pneumatic-tubes

Macroz17:03:42

@hugobessaa looks nice, does that use subscriptions?

hugobessaa17:03:08

no. just ratoms

Macroz17:03:47

sure but would be nice if thecontainer components that subscribe also were available

Macroz17:03:06

also modifications are in handlers so would be nice to run them

Macroz17:03:25

I guess one problem is the global app-db

Macroz17:03:52

for devcards to be separate would have to have multiple app states

Macroz17:03:02

more fractal design, than one global

Macroz17:03:23

there is fine reagent support in devcards anyway

oli21:03:32

i'm having issues getting the material design icons to show up w/ re-com

oli21:03:36

any pointers?