Fredrik Höglund

2.1K posts

Fredrik Höglund banner
Fredrik Höglund

Fredrik Höglund

@ephemjs

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

Stockholm 가입일 Aralık 2011
414 팔로잉935 팔로워
Fredrik Höglund 리트윗함
Natalie Marleny
Natalie Marleny@NatalieMarleny·
Gitlip Editors: Demo Launch 🌷 Gitlip is a collaborative coding platform, and today we’re launching the demo for Gitlip Editors - our take on collaborative coding environments. If you've ever wanted to collaborate on Markdown or code with the convenience of Google Docs, our demo is for you.
English
13
23
145
35.8K
Fredrik Höglund
Fredrik Höglund@ephemjs·
@cakemakerjake I realized my name was Ephem over there, so I updated it to my full name when I saw this to make me easier to find, so should be visible in search now. Thanks for pointing this out!
English
0
0
4
19
Jakob Norlin
Jakob Norlin@cakemakerjake·
@ephemjs Strange, you didn't come up when searching for your name
English
1
0
0
31
Jakob Norlin
Jakob Norlin@cakemakerjake·
@ephemjs Where? Pretty sure this is not you! Although, Mark seems to believe so 😅
Jakob Norlin tweet media
English
1
0
0
30
Jan Amann
Jan Amann@jamannnnnn·
@ephemjs Always worked great for me, thank you for your work on this!
English
1
0
1
30
Fredrik Höglund
Fredrik Höglund@ephemjs·
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.
Fredrik Höglund tweet media
English
1
0
8
720
Fredrik Höglund 리트윗함
Natalie Marleny
Natalie Marleny@NatalieMarleny·
Interested in how to host Infinite Git Repos on @Cloudflare? ⛅️ At Gitlip we’ve accomplished this using - Cloudflare Workers - Durable Objects - @libgit2 - @nixos_org - WebAssembly - @emscripten and now we’ve written about how we did it.
Natalie Marleny tweet media
English
11
67
409
58.1K
eli
eli@elibelly·
It's the @ReactAdvanced conf part of the week! Who am I seeing there tomorrow? 💂🏻‍♂️🎡🇬🇧
English
8
1
12
1.5K
Mark Erikson
Mark Erikson@acemarke·
Arrived in London for @ReactAdvanced this week! Would love to hang out with folks here for the conf or anyone who's here already. Ping me if you're around the next couple days, or will be at the conf and want to say hi!
English
4
1
30
2.6K
Fredrik Höglund
Fredrik Höglund@ephemjs·
@alvarlagerlof This makes me want to add this function. What it would do is populate the cache entry with "🐟🐠🐡" as a helpful means of finding that you've made an error. Would also take longer than usual, because fishing is about waiting.
English
1
0
2
72
Alvar Lagerlöf
Alvar Lagerlöf@alvarlagerlof·
Me, writing prefish instead of prefetch
English
2
0
5
543
Fredrik Höglund 리트윗함
Kadi Kraman 💚
Kadi Kraman 💚@kadikraman·
How did I not know these work in GitHub😍
Kadi Kraman 💚 tweet media
English
75
594
6.1K
451.1K
Fredrik Höglund
Fredrik Höglund@ephemjs·
@TkDodo I keep saying this could change library APIs in a huge way. 😀
English
0
0
3
80
Fredrik Höglund
Fredrik Höglund@ephemjs·
@TkDodo Not only that, having "isomorphic" globals that are scoped per request on the server would also unlock moving a bunch of stuff off of context altogether. Imagine instead of having to do useQueryClient and pass that around, you could just import queryClient anywhere.
English
1
0
2
102
Seb ⚛️ ThisWeekInReact.com
Seb ⚛️ ThisWeekInReact.com@sebastienlorber·
React 19 greatly simplify vanilla data fetching Previously we had to useEffect, handle race conditions, unmounts, loading/error state... Now you just: - store a promise - read it within Suspense/ErrorBoundary This makes a whole class of problems disappear
English
35
94
939
113.6K
Fredrik Höglund
Fredrik Höglund@ephemjs·
@pleunv @sophiebits @sebastienlorber @oljimenez Oh yeah, it only becomes a problem when it becomes a problem, like when your app is suddenly suspending at a level it didn't before. There are unexpected cases like an error happening on the server and that top level Suspense boundary is now used to retry on the client.
English
1
0
3
763
Pleun
Pleun@pleunv·
@ephemjs @sophiebits @sebastienlorber @oljimenez This behavior seems normal, as a component triggering a grandparent suspense would also unmount any parents. I wouldn't expect the same without Suspense, though, and I think this is a fairly common pattern for global instance providers.
English
1
0
3
939
Pleun
Pleun@pleunv·
@sophiebits @sebastienlorber @oljimenez Wait... so singleton patterns where instances are created in a state initializer in order to avoid a rather nasty useRef+useEffect approach are not safe? Is this a v19 thing?
English
2
0
8
1.8K
Fredrik Höglund
Fredrik Höglund@ephemjs·
@TkDodo @tan_stack My brain always hurts when we talk, but in a good way! I feel the information density is always super high.
English
1
0
11
701
Dominik 🔮
Dominik 🔮@TkDodo·
Had the best of discussions with @tan_stack query co-maintainer @ephemjs today - one of those where your brain hurts after 2 hours 😂. Here are the things we went over: - A component that can detect if you've prefetched too much or too little. I'll post the RFC later today. - The `use` PR by @alexdotjs (github.com/TanStack/query…), which we'll likely ship soon behind an experimental flag. Coincidentally, you will also be able to use that flag to trigger prefetches during render 🤯. - With the help of the nextJs and swr team, we think we found a way to make our experimental ReactQueryStreamedHydration plugin work with authenticated requests (@AdamRackis is gonna love this). It will likely need a re-write (new package), so don't expect anything too soon, but we think we could also make it independent of nextJs. Exciting 🤩
Dominik 🔮 tweet media
English
5
6
102
9.6K