createScopedComponentContextWithStateForTest
open fun createScopedComponentContextWithStateForTest(parent: ComponentContext, component: Component, key: String): ComponentContext
Deprecated
Creates a ComponentContext scoped to a given component and initialized with its StateContainer. This was added to replace usages of ComponentContext.withComponentScope in tests.
This method shouldn't be necessary if you're using the latest test practices with LithoTestRule (or LegacyLithoTestRule for Java-only tests). See https://fblitho.com/docs/kotlin/testing-getting-started/ for more info.
Deprecated
introduced for legacy test cases - don't add new callers