Teemu Taskula
banner
teemutaskula.com
Teemu Taskula
@teemutaskula.com
Building delightful web apps primarily with React, Node.js and TypeScript 💻📱✨
CI checks are red,
PRs are stuck,
Tests keep on failing,
Time to level up.
December 20, 2024 at 4:26 PM
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
December 18, 2024 at 7:06 AM
The secret is to use a lib that supports the `styled` api, like pandacss
December 16, 2024 at 2:25 PM
Updated the issue description
December 16, 2024 at 10:20 AM
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 🤔
December 16, 2024 at 10:06 AM
@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 😅
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 ...
github.com
December 16, 2024 at 9:42 AM
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
December 14, 2024 at 8:21 PM
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"
December 11, 2024 at 3:13 PM
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.
December 9, 2024 at 8:14 PM
@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?
December 9, 2024 at 8:07 PM
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?
December 9, 2024 at 7:49 PM
Thanks for the tip 👍

I'll come back to you tomorrow with the results when I'm back at work 😁
December 9, 2024 at 5:25 PM
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?
December 9, 2024 at 1:57 PM