Skip to content

Refresh from external callback #1606

Answered by SBoudrias
max529 asked this question in Q&A
Nov 17, 2024 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

Hum, then it could be because the async context is lost when giving a callback somewhere.

Try adding some AsyncResource.bind(() => { ... }); like on setTimeout:

delayTimeout = setTimeout(AsyncResource.bind(() => {
	setErrors({ ...newErrors });
}), 300);

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@max529
Comment options

@SBoudrias
Comment options

Answer selected by SBoudrias
@max529
Comment options

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