This interface defines how ComponentTree should handle pre-allocation specs. It triggers an extra-step post layout, which verifies what mount content is associated with the calculated LayoutState and pushes it into the corresponding MountItemPool if it can.



Link copied to clipboard
class Custom(val handler: RunnableHandler) : PreAllocationHandler

Litho will run the pre-allocation in the Handler that is explicitly given.

Link copied to clipboard

Litho will run the default pre-allocation in the same Thread that is used to run the Render pipeline, which is a background Thread.