Skip to content

E0336: A live page hook that doesn't fit ​

A hook is a method of the page marked @ui.Mount, @ui.OnChange or @ui.Loads("group"). A deferred group is a name, as @ui.Defer gives it, and a group has one loader. The app refuses the page at start-up; vukavet reports it from the generated LiveSchema.

Wrong ​

vuka
type Dashboard struct {
	ui.Live
	Rows []Row @ui.Defer("lists")
}

@ui.Loads("the lists")
func (d *Dashboard) loadLists(ctx context.Context) error { … }
vuka
type Dashboard struct {
	ui.Live
	Rows []Row @ui.Defer("lists")
}

@ui.Loads("lists")
func (d *Dashboard) loadLists(ctx context.Context) error { … }

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.