(Mentira me piden ayuda cualquier cosa pero sepan que no están haciendo un hack están haciendo una asquerosidad)
(Mentira me piden ayuda cualquier cosa pero sepan que no están haciendo un hack están haciendo una asquerosidad)
It seems that the code github.com/vercel/next.... could potentially contain an unfulfilled Promise, which is why the rest of the finally clauses are never called (like in scr 1).
Because the code on skr 2 is working
It seems that the code github.com/vercel/next.... could potentially contain an unfulfilled Promise, which is why the rest of the finally clauses are never called (like in scr 1).
Because the code on skr 2 is working
Wait, what? Yes!
React 19 introduced a minimum delay for showing a Suspense fallback, and hardcoded (!) it to 300ms.
Just 3 tests can waste almost 1 second on absolutely nothing!
Wait, what? Yes!
React 19 introduced a minimum delay for showing a Suspense fallback, and hardcoded (!) it to 300ms.
Just 3 tests can waste almost 1 second on absolutely nothing!
So I tried to profile this, and apparently setTimeout calls are much (10×) slower if you do them deep within a call stack (eg React’s recursivelyTraversePassiveMountEffects)? bsky.app/profile/did:...
gist.github.com/iamakulov/85...
So I tried to profile this, and apparently setTimeout calls are much (10×) slower if you do them deep within a call stack (eg React’s recursivelyTraversePassiveMountEffects)? bsky.app/profile/did:...
Just 100-200 of those in a row (trivial if you’re mounting a bunch of React components that set timers) will easily block the page.
Just 100-200 of those in a row (trivial if you’re mounting a bunch of React components that set timers) will easily block the page.
```js
fn zalgo(ms, cb) {
if (ms === 0) cb();
else setTimeout(cb, ms);
}
```
Adding more ways to introduce this footgun seems bad but should we not also trust developers with perf features?
```js
fn zalgo(ms, cb) {
if (ms === 0) cb();
else setTimeout(cb, ms);
}
```
Adding more ways to introduce this footgun seems bad but should we not also trust developers with perf features?
Was losing my mind why it wouldn't trigger game over when two pairs were found.
Turns out I had typed it wrong. Object.value() instead of Object.values() so it was always undefined.
Mondays, right!?
Was losing my mind why it wouldn't trigger game over when two pairs were found.
Turns out I had typed it wrong. Object.value() instead of Object.values() so it was always undefined.
Mondays, right!?
Finally started backend with Node.
#webdev #javascript @nodejs.org
Finally started backend with Node.
#webdev #javascript @nodejs.org
setTimeout(cb, 0) went so hard back in angular 1.6 days.
setTimeout(cb, 0) went so hard back in angular 1.6 days.
await new Promise(resolve => setTimeout(resolve, 31536000000))
await new Promise(resolve => setTimeout(resolve, 31536000000))
For example, as I experimented building more complex apps, I soon realized I also needed to manage background tasks more intelligently: `setTimeout` and yolo just isn't good enough!
So now we have TinyTick 🤣
Most intelligent and local-first web applications need background tasks like fetching, syncing, and cache eviction.
But managing them - with scheduling, failure handling, retries, and so on - can be a pain.
For example, as I experimented building more complex apps, I soon realized I also needed to manage background tasks more intelligently: `setTimeout` and yolo just isn't good enough!
So now we have TinyTick 🤣
The div.append(video) goes inside the setTimeout(), the video.style.width & height are 120 and 240, and I got rid of the video.style.opacity stuff because that wasn't working right.
The div.append(video) goes inside the setTimeout(), the video.style.width & height are 120 and 240, and I got rid of the video.style.opacity stuff because that wasn't working right.
Now, where were we? Oh yeah: the important thing was that I used a `setTimeout`, which was the style at the time.
Now, where were we? Oh yeah: the important thing was that I used a `setTimeout`, which was the style at the time.
gist.github.com/david-crespo...
gist.github.com/david-crespo...