func New(ctx context.Context, self flux.ViewInterface) *View { app := stores.FromContext(ctx) return &View{ View: flux.NewView(ctx, self, app), App: app, } }
func NewTestView(ctx context.Context, app flux.AppInterface, watch bool) *TestView { v := &TestView{} v.View = flux.NewView(ctx, v, app) if watch { v.Watch("a", notif1{}) } return v }