TreeState
class TreeState
Types
Link copied to clipboard
class TreeMountInfo
This class represents whether this Litho tree has been mounted before. The usage is a bit convoluted and will need to be cleaned out properly in the future.
Properties
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun applyLazyStateUpdatesForContainer(key: StateId, container: StateContainer, isNestedTree: Boolean): StateContainer
Link copied to clipboard
fun applyStateUpdatesEarly(context: ComponentContext, component: Component?, prevTreeRootNode: LithoNode?, isLayoutState: Boolean)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun commitLayoutState(localTreeState: TreeState, trackForPromotion: Boolean = false, resolveVersion: Int = UNSET_VERSION)
Link copied to clipboard
fun commitResolveState(localTreeState: TreeState, trackForPromotion: Boolean = false, resolveVersion: Int = UNSET_VERSION)
Link copied to clipboard
Link copied to clipboard
fun createOrGetEventDispatchInfoForComponent(scopedContext: ComponentContext, component: Component, key: GlobalKey): EventDispatchInfo
Link copied to clipboard
fun <T> createOrGetInitialHookStateByHookKey(key: GlobalKey, hookKey: HookKey, deps: Array<*>, initializer: HookInitializer<T>, isLayoutState: Boolean, componentName: String): ComponentState<KStateContainer>
Link copied to clipboard
fun createOrGetState(scopedContext: ComponentContext, component: Component, key: GlobalKey): ComponentState<out StateContainer>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Computes the effective updates for promotion by combining both resolve and layout handlers.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun <T> peekOrSeedInitialHookStateByHookKey(key: GlobalKey, hookKey: HookKey, deps: Array<*>, initializer: HookInitializer<T>, isLayoutState: Boolean, componentName: String): CachedValue
Link copied to clipboard
fun putCachedValue(cacheKey: HookGlobalKey, cachedValueInputs: Any, cachedValue: Any?, isLayoutState: Boolean)
Link copied to clipboard
Link copied to clipboard
fun queueStateUpdate(key: StateId, stateUpdate: StateContainer.StateUpdate, isLazyStateUpdate: Boolean, isLayoutState: Boolean)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Subtracts promoted counts from both resolve and layout handlers.
Link copied to clipboard