Fork me on GitHub
#lein-figwheel
<
2018-01-11
>
grav08:01:02

Okay, so let’s say I have two clients connected and issue a (js/alert "bhauman rulez") in the cljs repl. Both clients will show an alert. But how about other interactions, like @app-state or something, which client will I hit then? Or rather, which client’s state is returned in the REPL?

souenzzo12:01:02

I think that it's a feature. State should be in sync in both clients, not?

wiseman18:01:33

i think the answer is “whichever client responds first”

bhauman19:01:04

yeah the multi-client feature is mostly so that you can watch dev on another device and see if its going well

bhauman19:01:29

to the recommended way to focus is to close a connection

bhauman19:01:31

I have played with several solutions to this, the best one is to have each client maintain a reliable human readable name, and then allow the repl to focus on the named connection.

bhauman19:01:12

we could have the responses and print output labeled with the name as well

frenata21:01:59

Struggling with figwheel today: I'd like to set my output-to js compile target to a generated value, but it seems to refuse anything other than a string literal?

frenata21:01:21

I guess possibly this is more CLJS related than figwheel specific.

frenata22:01:54

^ Resolved.