Hans Raaf

Results 419 comments of Hans Raaf

> Never save ui in slice. This would mean you can't use a component in a slice and this would mean that there is something seriously missing in Go-App. What...

See #632 ...I believe that because both conditional code paths are always executed, you always `h.ValueTo(&h.path)`. I still think that `app.If()` should be deprecated.

Why not use a `func(bool) app.UI` that returns either one or the other version. This should work and avoid execution of code that is not needed.

What do you mean with "render twice"? Is "Render()" called twice or are you nodes in the DOM rendered "twice" and how do you know that? Edit: Actually I wonder...

It looks like you do something wrong in the component that is rendering this page. The main is okay as is.

Well, I do not immediatly see a problem there. Did you check what elements are getting created in the browser? P.S.: Placing the `` tag inside of the body is...

Did you try it without the css?

> When I commented out this line in main.go: "app.RunWhenOnBrowser()" it stopped double rendering and works fine. This can't be the solution. If that line is missing, there is no...

This is using Unix shell syntax (bash / zsh), I wonder what 'make' is running it. You could try using "set" on an extra line ```bat set GOARCH=wasm set GOOS=js...

I think that using [Mage](https://magefile.org/) is actually a nicer option than using make in general. This will work on Windows too and even without a local mage installation (which is...