re-frame

gtbono 2024-12-06T11:35:26.981119Z

folks, is it possible to use re-frame-10x on a different window than the cljs app? I'm developing a mobile webapp, so my browser window is small

p-himik 2024-12-06T11:37:33.889879Z

Can't check right now but IIRC there's a button to pop out the panel into a separate window.

gtbono 2024-12-06T11:49:26.068429Z

thanks! there's really a button to do this! it only uses the context of the current browser tab though... I'm developing inside a Webview in an Android application that I see through the emulator... is there a way for me to "connect" to the re-frame-10x of that webview?

p-himik 2024-12-06T12:28:55.395569Z

Ah, no clue. Re-frisk is able to do it, but it has some caveats.

gtbono 2024-12-06T12:56:28.763919Z

will look into it! what kind of caveats?

p-himik 2024-12-06T12:57:51.502489Z

Not all values can be (de)serialized, large amounts of data are slow to (de)serialize. Those are the ones that I remember, maybe there are others.

gtbono 2024-12-06T20:52:52.962319Z

re-frisk opens in another window, but it doesn't grab events coming from the webview :(

gtbono 2024-12-06T20:36:11.959609Z

I'm building a capacitor/cordova app in clojurescript and want to use re-frame-10x. My phone webview is too small and the pop out button does nothing, what can I do? I also tried to setup re-frisk but apparently it's a different tool

p-himik 2024-12-06T20:53:29.890349Z

Re-frisk is a different tool, but it has what you need, at least in terms of being able to communicate with your app from a different process. Re-frame-10x is supposed to run within the same app, on the same device, so you're out of luck here, unless you heavily patch re-frame-10x to basically turn it into a very different tool. A potentially suitable solution is to develop on desktop with mobile layout turned on in your browser's DevTools and use re-frame-10x there. And only use phone webview for tests.