Fredrik Höglund
banner
ephem.dev
Fredrik Höglund
@ephem.dev
Freelance developer - React Query maintainer - Occasional OSS contributor - Been putting React on servers for a decade - Father of two - Homebrewer - Stockholm

ephem.dev
Hoisting state is so often the answer, but many devs avoid it because they want co-location.

Underrated solution: Export a hook alongside the component. Import and use the hook in a parent, pass the returned state down.

Now parent owns the state and can interact with it, but logic is co-located.
October 21, 2025 at 3:51 PM
I finally found and fixed the unhandled promise rejection errors we've had in React Query for some time.

If you are using prefetchQuery() without awaiting in Server Components, you'll want to upgrade to 5.90.3 to get rid of those pesky "An error occurred in the Server Components render" errors.
October 14, 2025 at 11:31 AM
On my way to Amsterdam, looking forward to meeting so many friends, old and new!
June 11, 2025 at 7:39 AM
Reposted by Fredrik Höglund
👋 We're building a new type of word processor at Marker, and we're hiring for React/ProseMirror engineers and full-stack AI engineers to join the team in London.

Are you an engineer who cares about writing? Or do you know someone who does?

See: writewithmarker.com/jobs

More details below 👇
June 4, 2025 at 5:12 PM
Reposted by Fredrik Höglund
*Very* cool use of typed attr() for grid placement! 😀

dev.to/madsstoumann...
Guitar Chords in CSS
In my previous article, I looked into the new, improved attr() method in CSS. I was over the moon...
dev.to
May 12, 2025 at 6:49 PM
Reposted by Fredrik Höglund
Today we're sharing that View Transitions and Activity are ready to try in the experimental channel, along with docs and updates on other areas we're actively working on:

react.dev/blog/2025/04...
React Labs: View Transitions, Activity, and more – React
The library for web and native user interfaces
react.dev
April 23, 2025 at 3:45 PM
Reposted by Fredrik Höglund
React 19.1 has just been released! Check out the latest updates here:

github.com/facebook/rea...
Release 19.1.0 (March 28, 2025) · facebook/react
Owner Stack An Owner Stack is a string representing the components that are directly responsible for rendering a particular component. By combining Owner Stacks with Component Stacks, you can bette...
github.com
March 28, 2025 at 9:53 PM
Reposted by Fredrik Höglund
For the uninitiated, AsyncLocalStorage is a Node API (nodejs.org/api/async_co...) that's been adopted by other server runtimes. But we really need it in the browser too, and that's where github.com/tc39/proposa... comes in. Really hoping it moves forward, it will be huge
GitHub - tc39/proposal-async-context: Async Context for JavaScript
Async Context for JavaScript. Contribute to tc39/proposal-async-context development by creating an account on GitHub.
github.com
March 17, 2025 at 7:21 PM
Writing docs today. I really enjoy doing so, but I have to constantly struggle against my nature of writing exhaustive long form wall of texts to make them actually useful.

I need to get better at drawing charts and creating visual representations..
November 29, 2024 at 10:32 AM
If you have two useQuery with different staleTime, would you expect isStale returned from that useQuery to:

* Change individually as each staleTime passes?
* Change together when shortest staleTime has passed?
* Have access to both of the above as separate isGloballyStale/isLocallyStale?
November 23, 2024 at 8:22 PM
Reposted by Fredrik Höglund
📢 After more than 11 years of working at Adverity in various positions, I’ve decided to look for new challenges in 2025.

🚀 I'm excited to share that starting in January, I'll be joining the Frontend Platform Team at @sentry.io.
November 19, 2024 at 12:09 PM
Building Next.js locally to test the latest React canary reminded me my Mac actually does have fans.

Feels good to give it some exercise every once in a while.
November 17, 2024 at 10:08 AM
Oh wow, rollup-plugin-preserve-directives is almost at 30k weekly downloads, it's probably time to make a stable release.. 🙄

I should probably add a pipeline and tests too, especially with all the new directives flying around, I just wish days had more hours.
November 4, 2024 at 12:12 PM
Here's what's up!

* Caring for kids, dog and house
* Migrating a dashboard to app router and React Query..
* ..debugging some app router RQ bugs 😬
* Attempting general solution for making authenticated requests during suspense SSR - PoC working
* Building a homebrewing fermentation temp controller
November 3, 2024 at 8:36 PM
This account has been sleeping for a while, but seems like a good time to fire it up!
November 2, 2024 at 8:00 PM