Skip to content

Commit

Permalink
Turn on Litho compiler plugin
Browse files Browse the repository at this point in the history
Summary: As violating modules have been added to the DENY list in previous diffs, this diff attempts to turn the plugin on across board

Reviewed By: astreet

Differential Revision: D69592847

fbshipit-source-id: 4c668b46bdb9b945cf78bfebd7aeaa22958edccb
  • Loading branch information
kingsleyadio authored and facebook-github-bot committed Feb 17, 2025
1 parent d54cf28 commit 3edaabb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions litho-it/src/test/com/facebook/litho/KStateTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ package com.facebook.litho
import android.view.View
import com.facebook.litho.SizeSpec.EXACTLY
import com.facebook.litho.accessibility.contentDescription
import com.facebook.litho.annotations.Hook
import com.facebook.litho.core.height
import com.facebook.litho.core.width
import com.facebook.litho.kotlin.widget.Text
Expand Down Expand Up @@ -49,6 +50,7 @@ class KStateTest {
@Rule @JvmField val mLithoTestRule = LithoTestRule()
@Rule @JvmField val expectedException = ExpectedException.none()

@Hook
private fun <T> ComponentScope.useCustomState(value: T): State<T> {
val state = useState { value }
return state
Expand Down

0 comments on commit 3edaabb

Please sign in to comment.