shadow-cljs

https://github.com/thheller/shadow-cljs | https://github.com/sponsors/thheller | https://www.patreon.com/thheller
Phil Jackson 2021-03-06T12:50:58.256800Z

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

Phil Jackson 2021-03-06T12:51:08.256900Z

Phil Jackson 2021-03-06T12:52:12.257300Z

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

thheller 2021-03-06T12:57:11.257500Z

unfortunately core.async loses typehints

Phil Jackson 2021-03-06T12:57:28.257700Z

Oh no.

Phil Jackson 2021-03-06T12:58:03.257900Z

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

Phil Jackson 2021-03-06T13:03:27.258100Z

Actually, I can just wrap the culprits...

Alex 2021-03-06T19:01:00.259100Z

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?

thheller 2021-03-06T19:07:29.260Z

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

thheller 2021-03-06T19:07:44.260500Z

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

Alex 2021-03-06T23:19:46.261300Z

Awesome -- thanks a lot thomas!