Advertisement ยท 728 ร— 90

Posts by Teemu Taskula

Video

New React Aria release! ๐ŸŽ

๐Ÿ”Ž Autocomplete alpha
๐Ÿ“ฝ๏ธ CSS transition support in addition to keyframes
๐Ÿ“† Custom Calendar first day of week
๐Ÿงช Unit test utility package for ARIA patterns
๐ŸŽฏ Removed custom hit testing in usePress
๐Ÿž and plenty of bug fixes!

react-spectrum.adobe.com/releases/202...

1 year ago 55 4 1 1
Preview
JavaScript Frameworks - Heading into 2025 I admit I wasn't sure I'd be writing this article this year. It's easy to write articles that excite...

Time for my annual look at the state of JavaScript Framework development.

"JavaScript Frameworks - Heading into 2025" #DEVCommunity #javascript #WebDev dev.to/this-is-lear...

1 year ago 121 30 3 8

๐ŸŽŠ Happy New Year!

I discovered a lot of very cool dev stuff in 2024, from libraries to devtools to educational resources. Thought itโ€™d be fun to share them all, to help kickstart your 2025!

Letโ€™s go through the list. ๐Ÿงต

1 year ago 461 70 16 8

Red XIII totally changing his voice midgame wasn't on my bingo card ๐Ÿ˜ต

1 year ago 1 0 0 0
TypeScript function that returns corresponding flag emoji for alpha2 code:

export function getFlagEmoji(alpha2: string) {
  return alpha2
    .toUpperCase()
    .split('')
    .map(char => String.fromCodePoint(127397 + char.charCodeAt(0)))
    .join('');
}

TypeScript function that returns corresponding flag emoji for alpha2 code: export function getFlagEmoji(alpha2: string) { return alpha2 .toUpperCase() .split('') .map(char => String.fromCodePoint(127397 + char.charCodeAt(0))) .join(''); }

๐Ÿ‘จโ€๐Ÿ’ป Dev tip: Display flag emoji for given country code

I love using chatgibidi for problems like these where there is no point trying to figure it out yourself as it is not really an interesting/educational problem to solve.

1 year ago 4 0 0 0

If you see bunnies you know there is treasure

1 year ago 1 0 0 0

The worst part of After Eight is all the evidence it leaves behind

1 year ago 2 0 0 0

Perhaps an unpopular opinion:

<StrictMode> causes more issues than it solves.

1 year ago 2 0 0 0
Preview
a man in white pants is cleaning a living room floor Alt: a man in white pants is cleaning a living room floor.

๐Ÿงน Christmas cleaning continues:

Removed large barrel file that re-exported all our UI kit components and now Vite can split our app much more optimally

1 year ago 4 0 0 0
Feels good man.

Feels good man.

Just removed all `forwardRef`s from my current work project

1 year ago 2 0 0 0
Advertisement

CI checks are red,
PRs are stuck,
Tests keep on failing,
Time to level up.

1 year ago 0 0 0 0

I've been debugging CI issues the whole day... ๐Ÿ™ƒ

How's your Friday going?

1 year ago 0 0 1 0

The right one

I often hold my phone in my left hand and the floating button can block scrolling when my thumb accidentally hits it while doing the scroll gesture

1 year ago 3 0 0 0

The secret is to use a lib that supports the `styled` api, like pandacss

1 year ago 0 0 0 0

Updated the issue description

1 year ago 2 0 0 0
Post image

Okay this is super embarassing... I swear I tried to use `useDeferredValue` with `useReadQuery` and it didn't work but now that I try it in my repro instead of the project code it actually works and the suspense fallback is not shown ๐Ÿ˜…

However the `isPending` flag doesn't seem to work ๐Ÿค”

1 year ago 2 0 2 0
Preview
How to use `useDeferredValue` with `useReadQuery` to stop showing Suspense fallback? ยท Issue #12227 ยท apollographql/apollo-client Issue Description Hi ๐Ÿ‘‹๐Ÿป This is a follow-up issue related to a discussion on Bluesky where I tagged @phryneas and asked a React Suspense related question. Basically the question is: how do we stop ...

@phry.dev I finally found the time to report an issue with a repro about this topic: github.com/apollographq...

Sry for taking so long ๐Ÿ˜…

1 year ago 3 0 1 0

We didn't use to have these in Finland but some years ago they arrived and they poop everywhere and basically ruin all the parks

1 year ago 1 0 0 0

I did this in a consulting project where they required me to input my hours in three different systems where in one of the systems I had to manually sum the weekly hours myself

Every week I added one extra billable item just for "Marking the hours"

1 year ago 2 0 0 0
Advertisement
Post image

Maybe I'm doing it wrong but adding `.toPromise` doesn't seem to help ๐Ÿ˜…

I tried even to update to React v19 to get async transition support but that didn't change anything.

1 year ago 1 0 1 0

@tkdodo.eu @manuelschiller.bsky.social I would like to better understand what "but are short-circuited by useSyncExternalStore used by the router" actually means in practice? Does it mean that trying to stop router driven suspension with transitions is not a viable solution in Tanstack Router?

1 year ago 1 0 1 0
Post image

Thanks for the input @tkdodo.eu ๐Ÿ‘

We already have a custom version of `useSuspenseQuery` that handles the re-suspension issue but @phry.dev is it possible to do something similar with `useReadQuery`? Or what would be the best pattern to use Suspense with loaders that are driven by url params?

1 year ago 1 0 1 0

Thanks for the tip ๐Ÿ‘

I'll come back to you tomorrow with the results when I'm back at work ๐Ÿ˜

1 year ago 1 0 1 0

What is the canonical use case for Suspense to show the fallback again after the initial suspension?

Basically I always want to show an inline pending indicator instead of replacing the whole UI with the fallback.

Having to wrap every state update with `startTransition` feels backwards to me...

1 year ago 1 0 0 0

Is there a way to use `useDeferredValue` with `useReadQuery` in way that the we only ever suspend on the initial render and all subsequent changes to `queryRef` just maintain the old UI and gives some `isSuspending` flag that we can use for inline pending UI?

1 year ago 1 0 0 0

@tannerlinsley.com @phry.dev any tips on how to skip suspending when I update search params in Tanstack Router which re-triggers `preloadQuery` in the `loader` that returns `queryRef` that is then read with `useReadQuery`?

Wrapping `navigate` with `startTransition` doesn't seem to help ๐Ÿค”

1 year ago 1 0 2 0

Final Fantasy is one of my all time favorite game franchises but if you have not played any FF games before it can be a bit of an acquired taste

Currently playing FF7 Rebirth and loving it

1 year ago 0 0 0 0

Remedy games like Control and Alan Wake 2 are phenomenal story-wise and the graphics/gameplay is gorgeous

Latest God of War games are incredible but the boss battles can be challenging

Spider-Man games are one of my favorites. So fun to swing around NYC

Ratchet and Clank is beautiful and fun

1 year ago 1 0 1 0

Happy Independence Day Finland ๐Ÿ‡ซ๐Ÿ‡ฎ

1 year ago 1 0 0 0
Advertisement
Preview
React v19 โ€“ React The library for web and native user interfaces

React v19 is now stable!

react.dev/blog/2024/12...

1 year ago 1282 342 32 93