Skip to content

W0301: A live page routed as a stateless one ​

The @ui.Island struct embeds ui.Live, which makes it a live page, but it is routed with @web.Get (or another verb), which is for a stateless page. It still works as a live page; @web.Live says so. Reported by vuka vet and the editor.

Wrong ​

vuka
@web.Get("/orders")
@ui.Island
type Orders struct {
	ui.Live
	Rows []Order
}
vuka
@web.Live("/orders")
@ui.Island
type Orders struct {
	ui.Live
	Rows []Order
}

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.