Skip to content
Navigation menu
Search
Powered by Algolia
Search
Log in
Create account
DEV Community
Close
#
closuresfunctions
Follow
Hide
Posts
Left menu
👋
Sign in
for the ability to sort posts by
relevant
,
latest
, or
top
.
Right menu
Why setInterval/setTimeout gets an old state or reference in react components.
sojin antony
sojin antony
sojin antony
Follow
May 1 '25
Why setInterval/setTimeout gets an old state or reference in react components.
#
closuresfunctions
#
react
4
 reactions
Comments
4
 comments
2 min read
👋
Sign in
for the ability to sort posts by
relevant
,
latest
, or
top
.
We're a place where coders share, stay up-to-date and grow their careers.
Log in
Create account