NestedStateUpdater
Functions
Link copied to clipboard
open override fun applyLazyStateUpdatesForContainer(globalKey: String, container: StateContainer, isLayoutState: Boolean): StateContainer
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Removes a state update that was previously enqueued if the state update has not been processed yet.
Link copied to clipboard
open override fun updateHookStateAsync(globalKey: String, updateBlock: HookUpdater, attribution: String?, isLayoutState: Boolean)
Same as updateStateAsync but for Hook State.
Link copied to clipboard
open override fun updateHookStateSync(globalKey: String, updateBlock: HookUpdater, attribution: String?, isLayoutState: Boolean)
Same as updateStateSync but for Hook State.
Link copied to clipboard
open override fun updateStateAsync(globalKey: String, stateUpdate: StateContainer.StateUpdate, attribution: String?, isLayoutState: Boolean)
Enqueues a state update that will schedule a new render on a Thread controlled by the Litho infrastructure.
Link copied to clipboard
open override fun updateStateLazy(globalKey: String, stateUpdate: StateContainer.StateUpdate, isLayoutState: Boolean)
Enqueues a state update that will not schedule a new render. The new state will immediately be visible in Event Handlers and it will be visible in the next render phase.
Link copied to clipboard
open override fun updateStateSync(globalKey: String, stateUpdate: StateContainer.StateUpdate, attribution: String?, isLayoutState: Boolean)
Enqueues a state update that will schedule a new render on the calling thread at the end of its current run-loop. It is expected that the calling thread has an active Looper.