Skip to content

E0321: Bad ui.Layout ​

ui.Layout(…) in @ui.Island is the layout of the page the type backs. A layout is a func(page ui.Node) ui.Node, or a func(ctx context.Context, page ui.Node) ui.Node that reads the request. Reported at boot.

Wrong ​

vuka
func Page(title string) ui.Node { … }

@ui.Island(ui.Layout(layouts.Page))
type Orders struct{ ui.Live }
vuka
func Page(title string) func(page ui.Node) ui.Node { … }

@ui.Island(ui.Layout(layouts.Page("Orders")))
type Orders struct{ ui.Live }

Released under the MIT License. Vuka builds on Go and its tools, which are made by the Go Authors. Vuka is not affiliated with Google or the Go project. Go is a trademark of Google LLC.