Skip to content

Commit eca02fc

Browse files
committed
🧑‍💻: update declare
1 parent 6c70ee5 commit eca02fc

File tree

1 file changed

+7
-0
lines changed
  • hooks/src/main/kotlin/xyz/junerver/compose/hooks

1 file changed

+7
-0
lines changed

hooks/src/main/kotlin/xyz/junerver/compose/hooks/declare.kt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,13 @@ fun rememberInterval(
121121
block: () -> Unit,
122122
) = useInterval(options, block)
123123

124+
@Composable
125+
fun rememberInterval(
126+
options: IntervalOptions = defaultOption(),
127+
ready: Boolean,
128+
block: () -> Unit,
129+
) = useInterval(options, ready, block)
130+
124131
@Composable
125132
fun rememberKeyboard() = useKeyboard()
126133

0 commit comments

Comments
 (0)