Skip to content

onBlur is called with old table state #190

Answered by nick-keller
DonHaul asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @DonHaul,
Yes this is intended. As you may know, the default version of DSG is static, and the static version "saves the props it receives on the first render and never updates them".

This means that the onBlur function that is called is the one you pass on the very first render. And it displays the data that is had when the function was created, here the {} from const [data, setData] = useState({})

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by nick-keller
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #188 on September 27, 2022 14:57.