Module component

Source
Expand description

Component model for Orbit UI framework

This module contains all the types and traits related to the component model, including lifecycle management, state, props, and rendering.

Modules§

props
Props module for component properties

Structs§

Callback
A callback function that can be passed as a prop
ComponentBase
Base component functionality that all components share
ComponentId
Unique identifier for component instances
ComponentInstance
Wraps a component instance with its metadata
ComponentTree
Manager for the component tree
CompositionBuilder
Composition utilities and builder patterns
Context
Context passed to components providing access to state, events, and shared context
ContextProvider
Provider for component context
EnhancedContext
Context passed to components providing access to state and events
FlexibleCompoundComponent
A flexible compound component implementation
FlexibleCompoundProps
HOCWrapper
A generic higher-order component wrapper
LazyComponent
Lazy loading component wrapper
LifecycleHooks
Lifecycle hook options for components
LifecycleManager
Manages the lifecycle of components
MemoCache
Memoization cache for component render results
MemoComponent
Memoized component wrapper
ModuleUpdateScheduler
Scheduler for batching component updates
MountContext
Context provided during component mounting
MountOptions
Options for component mounting
Node
A node in the UI tree with event delegation support
PerformanceMonitor
Performance monitoring hooks
PerformanceRegistry
Global performance optimization registry
RenderPropComponent
A component that uses render props pattern
RenderPropProps
Props for render prop component
RenderStatistics
RenderTimer
Timer for measuring render performance
Slot
Slot-based composition system
SlottedComponent
A basic slotted component implementation
SlottedProps
Props for slotted components
StateChange
Represents a specific change to component state
StateChanges
Collection of state changes for batching
StateSnapshot
Represents a snapshot of component state at a point in time
StateTracker
Tracks state changes for a component with dirty checking optimization
StateTrackingConfig
Configuration options for state tracking
UnmountContext
Context provided during component unmounting
UpdateBatcher
Batched update system for performance optimization
UpdateScheduler
Manages batched updates for improved performance
WithLogging
Common HOC patterns
WithPerformanceMonitoring
HOC that adds performance monitoring

Enums§

ChangePriority
Priority levels for state changes
ComponentError
Errors that can occur during component operations
LifecyclePhase
Lifecycle phase of a component
LoadTrigger
StateValue
Represents different types of state values that can be tracked
TreeError
Errors specific to tree operations
UnmountReason
Reasons for component unmounting
UpdatePriority
Priority level for component updates

Traits§

AnyComponent
Type-erased component trait for dynamic dispatch
Component
Enhanced component trait with improved lifecycle management
CompoundComponent
Compound component pattern - a component made of multiple sub-components
HigherOrderComponent
Trait for defining higher-order component behavior
Memoizable
Trait for memoizable components
Props
Props trait - implemented by all component props types
RenderProp
Trait for components that can render other components (render props pattern)
SizedProps
Marker trait to ensure props are sized
Slotted
Trait for components that support slots

Functions§

callback
Convenience function for creating a callback

Type Aliases§

LifecycleCallback
Type for lifecycle callback functions
LoggedComponent
Convenient type aliases for common HOCs
MonitoredComponent
TreeResult
Result type for tree operations