-
I am new to Dioxus. There is the closure trap in React hooks https://betterprogramming.pub/understanding-the-closure-trap-of-react-hooks-6c560c408cde As Dioxus is similar to React, does the similar closure trap exists in Dioxus when using |
Beta Was this translation helpful? Give feedback.
Answered by
ealmloff
Aug 8, 2023
Replies: 1 comment
-
It does exist, see #619. You can get the current value with the |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
qouteall
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It does exist, see #619. You can get the current value with the
current()
function on use_state or the value of use_ref is always up to date