Freelance developer - React Query maintainer - Occasional OSS contributor - Been putting React on servers for a decade - Father of two - Homebrewer

Stockholm
URQL has a really cool approach to fetching data on the server, namely using Suspense with a prepass-step. With react-lightyear, you can avoid that extra prepass and instead do a single asynchronous render, today I finally finished up an example. github.com/Ephem/react-light…
2
7
43
Fredrik Höglund retweeted
This is what we've been working on for the last few months. It's a new event system for React that is a complete departure from how events on handled today in React, or the DOM for that matter. The aim is to have a unified, declarative event system that works cross platform.
I’m so excited by the work @trueadm and @necolas are doing on React Flare (experimental), especially this PR: github.com/facebook/react/pu… It’s going to make event handling in React drastically, ridiculously, blazingly better
3
34
166
Microfrontends are back in the discourse, and that’s cool because League of Legends has had microfrontends in production for a couple of years! Let’s talk about hopes and dreams and harsh, cold reality 🧵
7
53
153
Replying to @addyosmani
Good news we're dropping this default in @webpack 5! So you have to opt in to polyfilling node libs going forward!
1
1
15
Fredrik Höglund retweeted
Tip: Audit JavaScript bundles regularly. Seen teams accidentally include... * Polyfills they no longer need (e.g Promises) * Whole tech stack in one large vendors.js chunk * Duplicate dependencies in each code-split chunk Audit w/webpack-bundle-analyzer bit.ly/webpack-bundle-codela…
16
511
1,728
First evening crunch in a while. Headphones on with some great music and the hours just flew by. That feeling of uninterrupted focus and flow sure can be both seductive and productive. My son doesn't care though, he is still waking up in four hours like the boss he is.. 💤
Fredrik Höglund retweeted
What began as a routine release announcement spiraled into a manifesto about immutability, cache normalization, async iterators, and the future of #ApolloClient according to its lead developer, @benjamn: medium.com/p/whats-new-in-ap…
1
32
113
Fredrik Höglund retweeted
⚓️🎣↪️React-Redux v7.1 with HOOKS is now FINAL!!!↩️🎣⚓️
9
66
242
react-ssr-prepass is awesome in itself btw. It's like a server renderer that can suspend, but doesn't generate markup. Supports not only Suspense but also custom visitor functions! You run it before renderToString, but it's way faster than traditional multi-pass rendering!
1
He is not lying, it's a seriously cool implementation that uses Suspense on the server but regular effects on the client. Coupled with react-ssr-prepass you can fetch data in any component even on the server! Should also work with react-lightyear, I'll definitely give it a spin.
Super excited about React SSR support landing into urql GraphQL client! 🔥 This unlocks tons more use cases for urql in general (you should check it out!), and besides @_philpl's suspense implementation paired with react-ssr-prepass is dank af 😮 github.com/FormidableLabs/ur…
1
2
6
We still have a few more wins like this that will improve performance noticeably without touching functionality or libs we use. Differential loading plus optimising polyfills is next up and a great combo, but not as trivial to accomplish as I feel it should optimally be.
These and a few other things happens to be exactly what I'm spending most of my time doing at work right now. Very satisfying and huge payoff!
JavaScript housekeeping: 🗑️ Remove old & duplicate deps 🐥 Replace large deps w/small ones 🧐 Check you aren't over-polyfilling 🧽 Clean up A/B test configs ✂️ Code-splitting! Walmart Grocery did this for their site. 69% smaller JS bundles. 28% faster Time-to-Interactive.
1
1
12
This looks extremely interesting!
After playing with it for a few weeks, I can confidently say that federation is the biggest thing to happen to GraphQL since GraphQL was released. blog.apollographql.com/apoll…
1
Such a great thread if you're like me and missed out on React Europe. Lowered my FOMO considerably and gave me a good idea of which talks to watch (seems to be a lot of great ones!). Uncut video (aka the live streams) already available: youtube.com/channel/UCorlLn2…
✨ Good morning carbon based lifeforms! I’ll be using this thread to live-tweet from @ReactEurope ⚛️🇪🇺 today and tomorrow so feel free to mute it if I’m annoying. And if you’re here, come say hi! 👋
1
1
Fredrik Höglund retweeted
We're getting a lot of questions about the future of React Router and @reach/router. Are they merging? Are they going to ship some hooks? We've been quietly working on it, here are our plans: reacttraining.com/blog/reach…
24
153
474