Skip to content
jshacks.dev

Tag

error fix

5 posts

Flat illustration of a log with a failing line and a wrench, with the JavaScript, Node.js, Vite and npm logos.
Functions

Fix a Stale Closure Holding an Old Value

Fix a JavaScript closure that keeps reading an old value inside a timer, listener or callback, by finding what it captured and changing how it reads it.

7 min read