NovFora Dev

Issue with nested callback timeouts causing race condition

Stella Richardson

Stella Richardson

2 months ago

I am seeing an intermittent bug where a database write inside a deeply nested callback returns after a parent timeout has already fired, leading to data inconsistency. The fix seems to be flattening with Promise.all or using async/await, but I'm unsure which approach fits best for this specific flow.

Join the conversation to leave a reply.

Sign in to reply

Related topics