Documentation
¶
Overview ¶
Package features provides higher-level abstractions for building Vango applications.
Deprecated: The v1 Developer Guide does not expose an umbrella `pkg/features` package in the public import surface. This package is retained for legacy and internal use only. Prefer `vango`, `setup`, and `el` imports.
Subsystems ¶
The features package is organized into several subsystems:
- form: Type-safe form binding with validation
- resource: Async data loading with loading/error/success states
- context: Dependency injection through the component tree
- hooks: Client-side 60fps interactions with server state
- shared: Session-scoped and global shared state
- optimistic: Instant visual feedback for interactions
- islands: Third-party JavaScript library integration
- wasm: Client-side WASM component integration
Note: For URL query state, use setup.URLParam.
Usage ¶
Each subsystem is in its own sub-package and can be imported independently for legacy/internal usage. See the individual package documentation for details.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package context provides a type-safe dependency injection mechanism for Vango applications.
|
Package context provides a type-safe dependency injection mechanism for Vango applications. |
|
Package form provides type-safe form handling with validation for Vango applications.
|
Package form provides type-safe form handling with validation for Vango applications. |
|
Package hooks provides client-side interaction hooks for Vango components.
|
Package hooks provides client-side interaction hooks for Vango components. |
|
internal
|
|
|
Package islands provides JavaScript integration for Vango components.
|
Package islands provides JavaScript integration for Vango components. |
|
Package optimistic provides instant visual feedback for user interactions.
|
Package optimistic provides instant visual feedback for user interactions. |
|
Package wasm provides WASM component helpers for Vango.
|
Package wasm provides WASM component helpers for Vango. |
Click to show internal directories.
Click to hide internal directories.