Fork me on GitHub
#shadow-cljs
<
2021-03-06
>
Phil Jackson12:03:58

Hey. Is there a trick for getting typehints to things in a go block?

Phil Jackson12:03:12

If I put the right hint (I think) where it should go (I think), it doesn't fix things for me.

thheller12:03:11

unfortunately core.async loses typehints

Phil Jackson12:03:03

Ok. Back to promises. Thanks for the swift reply.

Phil Jackson13:03:27

Actually, I can just wrap the culprits...

alex19:03:00

Hi there - any tips for introspecting app state via the REPL when you have 2 browser clients connected? For example, I have a user via regular Chrome window + a second user via incognito Chrome window. The browser runtime for the REPL seems to default to whichever browser client connects first, which makes sense... but I'm curious if it's possible to look at both?

thheller19:03:29

@alex.na you can switch the REPL by specifying the :runtime-id. so (shadow/repl :app {:runtime-id 123})

alex23:03:46

Awesome -- thanks a lot thomas!

thheller19:03:44

the runtime id is printed on connect in the console. or you can find in the UI http://localhost:9630/runtimes. inspect and tap> might also be useful