Hans Raaf

Results 419 comments of Hans Raaf

I am curious. Could you explain what QUIC does with LUA (the programming language?) and what go-app needs to do that you can not do already, as you already have...

ValueTo is basically just doing this: ```go value := ctx.JSSrc().Get("value") if err := stringTo(value.String(), v); err != nil { Log(errors.New("storing dom element value failed").Wrap(err)) return } ``` So maybe `stringTo()`...

Just a side note: I was thinking of doing something similar but using raw is so ugly and catching errors will be really hard. So I wrote a converter that...

And for your original problem: It may be possible to use use `theJSFunc := FuncOf(theGoFunc)` and adding the result as `app.Window().Set("thefunc", theJSFunc)` and call this as `` or similar.

@stool79 for a bigger app you should consider releasing the function in an `OnDismount()` handler. I would also add some alert or logging to the original `window.clickFunc` even when (I...

You may want to check out: https://github.com/pojntfx/html2goapp (esp: https://pojntfx.github.io/html2goapp/). I think this is the one I saw after I implemented mine already. It does not support some of the stuff...

I guess you want to use different stylesheets when the navigation changes. I think you can add a component that will have an `OnNav()` and changes the stylesheet to what...

> You can use ctx.Dispatch or ctx.Defer To react to something being rendered? There is no `ctx` in Render, where should it be called? I guess what he could do...

Prerender happens only on the server before your page gets delivered to the browser. So this will never work for JS Code. I can't imagine your code. Could you maybe...

Maybe you need something like a [mutation observer](https://blog.sessionstack.com/how-javascript-works-tracking-changes-in-the-dom-using-mutationobserver-86adc7446401). But maybe you just do something in a way that does not fit the way go-app is being designed in the first...