createScopedComponentContextWithStateForTest

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 LithoViewRule (or LegacyLithoViewRule 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