Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add useRefValue hook #472

Merged
merged 1 commit into from
Jun 5, 2021
Merged

Add useRefValue hook #472

merged 1 commit into from
Jun 5, 2021

Conversation

turansky
Copy link
Collaborator

@turansky turansky commented Jun 5, 2021

var count by useRefValue(0)

// debug mode
useEffect {
    count++
    println(count)
}

```Kotlin
var count by useRefValue(0)

useEffect {
    count++
    println(count)
}
```
@Leonya Leonya merged commit 07a8bda into JetBrains:master Jun 5, 2021
@Leonya
Copy link
Collaborator

Leonya commented Jun 7, 2021

Released in pre.208

@turansky turansky deleted the patch-3 branch July 11, 2021 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants