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

Consistency of hook dependencies v2 #476

Merged

Conversation

sgrishchenko
Copy link
Collaborator

@sgrishchenko sgrishchenko commented Jun 7, 2021

Fix #463
New implementation of hooks with vararg dependencies is added, old implementation is deprecated.
Cc @turansky

fun useEffect(
effect: EffectBuilder.() -> Unit,
) {
val effectCallback = useEffectCallback(effect)

This comment was marked as resolved.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

Formatting is improved
@Leonya Leonya merged commit a5dfd6b into JetBrains:master Jun 8, 2021
@turansky
Copy link
Collaborator

turansky commented Jun 8, 2021

And special thanks you to @vlsi and @fluidsonic for EffectBuilder idea

@Leonya
Copy link
Collaborator

Leonya commented Jun 10, 2021

Released in pre.209

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.

Consistency of hook dependencies
3 participants