Documentation
¶
Index ¶
- func Action[P any, A any, R any](s *corevango.SetupCtx[P], work func(context.Context, A) (R, error), ...) *corevango.Action[A, R]
- func Form[P any, T any](s *corevango.SetupCtx[P], initial T) *form.Form[T]
- func GlobalSignal[P any, T any](s *corevango.SetupCtx[P], initial T) *corevango.Signal[T]
- func Memo[P any, T any](s *corevango.SetupCtx[P], compute func() T) *corevango.Memo[T]
- func OnChange[P any, K comparable](s *corevango.SetupCtx[P], key func() K, cb func(next, prev K))
- func Resource[P any, T any](s *corevango.SetupCtx[P], load func(context.Context) (T, error), ...) *corevango.Resource[T]
- func ResourceKeyed[P any, K comparable, T any](s *corevango.SetupCtx[P], key func() K, ...) *corevango.Resource[T]
- func RouteForm[P any, T any](s *corevango.SetupCtx[P], initial T) *routeForm[T]
- func SharedSignal[P any, T any](s *corevango.SetupCtx[P], initial T) *corevango.Signal[T]
- func Signal[P any, T any](s *corevango.SetupCtx[P], initial T) *corevango.Signal[T]
- func URLParam[P any, T any](s *corevango.SetupCtx[P], key string, def T, opts ...urlparam.URLParamOption) *urlparam.URLParam[T]
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Action ¶
func Action[P any, A any, R any]( s *corevango.SetupCtx[P], work func(context.Context, A) (R, error), opts ...corevango.ActionOption, ) *corevango.Action[A, R]
Action creates an action during Setup.
func GlobalSignal ¶
GlobalSignal creates a global signal during Setup.
func OnChange ¶
func OnChange[P any, K comparable](s *corevango.SetupCtx[P], key func() K, cb func(next, prev K))
OnChange registers a typed change handler during Setup.
func Resource ¶
func Resource[P any, T any](s *corevango.SetupCtx[P], load func(context.Context) (T, error), opts ...corevango.ResourceOption) *corevango.Resource[T]
Resource creates a resource during Setup.
func ResourceKeyed ¶
func ResourceKeyed[P any, K comparable, T any]( s *corevango.SetupCtx[P], key func() K, load func(context.Context, K) (T, error), opts ...corevango.ResourceOption, ) *corevango.Resource[T]
ResourceKeyed creates a keyed resource during Setup.
func RouteForm ¶ added in v0.1.0
RouteForm creates a form that submits through the current page Action.
func SharedSignal ¶
SharedSignal creates a session-scoped signal during Setup.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.