withComponentScope

Creates a new ComponentContext instance scoped to the given component and sets it on the component.

Return

a new ComponentContext instance scoped to the given component

Parameters

parentContext

context scoped to the parent component

scope

component associated with the newly created scoped context