
Building https://nitter.cf/t.co/RIDUUvOm4C. Making things @tone_row_ From North Carolina. he/him
Joined February 2014
- Tweets666
- Following669
- Followers75
- Likes8.4K
One of my favorite parts about being from a southern state is that the Board of Elections curiously removes my voter registration status right before every single election. Thanks @NCSBE - you never forget about me! ♥️❤️
1
Replying to @flowchartfunbot
@flowchartfunbot
please forgive me
...: for spamming all day
...: ill stop now ❤️
1
Replying to @flowchartfunbot
@flowchartfunbot
but
if i tweet
we create an image
or: some else tweets
(we create an image)
1
hello. i am an employee at @tone_row_
(testing a twitter api integration, sorry y'all)
2
I bookmarked this tweet as soon as I saw it because I really struggle with using `act`, and I've already been back to it TWICE.
To avoid typing it out again I put it in a public gist. (I hope you don't mind @diegohaz!)
gist.github.com/rob-gordon/7…
#react #testing
These 3 functions solved all my problems with `act` when testing React components:

ALT The following code: // Wait for all queueMicrotask() callbacks function flushMicrotasks() { return act(() => Promise.resolve()) } // Wait for all requestAnimationFrame() callbacks function nextFrame() { return act(() => new Promise((resolve) => requestAnimationFrame(() => resolve())) ) } // Wait for setTimeout() callbacks async function sleep(ms) { await act(() => new Promise((resolve) => setTimeout(resolve, ms))) await nextFrame() } // Usage test("something works", async () => { // after doing something... await flushMicrotasks() // or... await nextFrame() // or... await sleep(100) })
S/O to @monicalent! I took the bloggingfordevs.com/ course the same week that I had some new ideas I wanted to blog about and the result... front page of Hackernews! 🙏
Merci @RobertCooper_RC for your edits and suggestions!
2
6
Is it just me or was @GitHubCopilot completely opaque about the fact that they would turn around and start charging at some point. Feels very much in bad faith 😮💨
2
1
I have a flaky benchmark test in my CI and sometimes I like to use it as my own personal groundhog day. The test passing is the groundhog, and prolonged winter is me ceasing to work on the project.
1
the people who, when solving a problem in javascript, start by making a Class, are the ones you need to watch out for 😐
1
1
I can't be helped. beyond redemption
Maybe the real treasure is the CSS-in-JS libraries you make along the way 🤝 github.com/tone-row/court.cs…
1
Tonight I scraped a few thousand websites looking at #css to get a sense of the most commonly used CSS properties.
What do you think was the number 1 most-used property? (- It surprised me!)
#HTML #javascript #webdevelopment
0%font-size
33%content
0%position
67%color
3 votes • Final results 1
All I want is to export my palette colors from @sketch How can this be so hard in 2022! 🥲



