Phuoc

1.5K posts

Phuoc

Phuoc

@__phuoc

Katılım Temmuz 2017
179 Takip Edilen9 Takipçiler
Phuoc
Phuoc@__phuoc·
@javivelasco Interesting approach. I made a lib that handles theming specifically, which solves the same underlying hydration mismatch issue in a different way. github.com/universse/reso…
English
0
0
4
118
Javi Velasco
Javi Velasco@javivelasco·
I shipped a small module that I'd have found super useful in past projects. In Next.js RSC apps, sometimes you have a dynamic value that conditions your layout, think of sidebar width, show/hiding sections or dark mode. If you opt into dynamic rendering for this, you lose PPR. This module solves that by reading cookies and setting CSS vars before first paint, avoiding hydration mismatches while keeping your page static. ~230 bytes. Example: …hydrate-next-resizable-sid.vercel.app And repository: github.com/javivelasco/re…
English
1
4
38
3.4K
Neon Postgres
Neon Postgres@neondatabase·
🚀 @tailwindcss makes the web more beautiful and more fun to build. Reply with your site, if it's really ugly we'll buy you Tailwind Plus
Neon Postgres tweet media
English
214
20
523
97.5K
Phuoc
Phuoc@__phuoc·
@semdzh @tan_stack layout route is useful as you don't need to repeat the logic across multiple protected routes. your solution is perfectly fine.
English
1
0
4
1.2K
Saeed
Saeed@semdzh·
Is it okay to protect _authed/dashboard with beforeLoad directly in its own route.tsx, rather than doing the auth guard in the parent _authed.tsx layout route like the TanStack Start examples do?
Saeed tweet media
English
6
3
81
15.1K
Phuoc
Phuoc@__phuoc·
@kyliestew automatic generation of Early Hints headers
English
0
0
2
65
Phuoc
Phuoc@__phuoc·
@DavidKPiano why not just write CSS at this point, since these go against Tailwind's value prop, such as no cascading, no naming (eg data-avatar), small bundle size (more unique classnames)
English
0
0
2
156
David K 🎹
David K 🎹@DavidKPiano·
Coming from CSS, I really appreciate how Tailwind gives you utilities to style direct children, all descendants, arbitrary variants, and more *:style (direct children) **:style (descendants) [&.selector]:style (arbitrary variants) Really flexible!
David K 🎹 tweet media
English
37
48
699
62.1K
Phuoc
Phuoc@__phuoc·
@ryanflorence pass the 1st select's value as key to the 2nd
English
0
0
1
249
Ryan Florence
Ryan Florence@ryanflorence·
Simple interaction: one select changes the options of a second with a remote data source How would you build it? How do you deal with race conditions?
Ryan Florence tweet media
English
119
6
250
241.2K
fks
fks@FredKSchott·
Cloudflare's blog post on this nails it IMO and is a huge validation on the original idea behind Astro: Client-side SPAs are great for dynamic, complex web apps. Tanstack is a joy to use. It pairs great with Astro when you need dynamic content (dashboards, search pages, web apps, etc). I genuinely love it. Client-side SPAs fall apart for high-performant content sites. Too much JavaScript, poor performance, poor SEO, etc. Content fails when you treat it like a big application! Older JavaScript frameworks tried to solve this by throwing complexity at the problem. SSR, ISR, PPR, client/server components, Isomorphic rendering... but complexity comes at a cost, and we're still here waiting for some of these promised solutions/bets to pay off. The reality is that client-side SPAs are actually great! Simplicity is a strength! A great web app built with Tanstack Router + local-first Tanstack DB will feel faster than any server-rendered application. The performance and complexity cost of adding SSR to a web app isn't always worth it. Astro and Tanstack are two sides of the same coin. We have our strengths and weaknesses, but together both cover the entire spectrum of what you might want to build on the web.
Cloudflare Developers@CloudflareDev

With support from our friends at @Netlify & @Webflow, we’re proud to back two essential open-source projects: @Astrodotbuild (for creating high-performance content sites) and @tan_stack (for building dynamic, complex web apps). We believe building the future of the web, together, and can’t wait to see what you build!

English
12
37
399
74.5K
SaltyAom
SaltyAom@saltyAom·
@sitnikcode Bun You can specified which packages can run postinstall
SaltyAom tweet media
English
2
0
45
2.4K
@sitnik_en@mastodon.social
@[email protected]@sitnikcode·
pnpm is the best package manager for protection against supply chain attacks (and it has the best DX overall). They disabled postinstall a long time ago, the main attack vector. Now they’ve added the minimumReleaseAge option to ignore new versions for, say, a day.
English
27
55
813
46.4K
Phuoc
Phuoc@__phuoc·
@devongovett does this work for swipeable tabs, specifically when the indicator is in between 2 tabs?
English
0
0
0
206
Devon Govett
Devon Govett@devongovett·
Animating React Aria Tabs, ToggleButtonGroup, etc. is about to be super easy with the new SelectionIndicator component. 🥳 • Native CSS transitions, no animation library needed. • Works with SSR with no flicker before JS runs. • No ResizeObserver. • Enter + exit animations.
English
17
19
381
22.9K
Phuoc
Phuoc@__phuoc·
@sebastienlorber react-aria-components Checkbox use hooks conditionally as well
English
1
0
0
508
Luka
Luka@apisurfer·
@thdxr Totally agree. These days I'm experimenting with the idea of SSG with Astro for most paths and then deploying SPA's to specific domain subpaths and have them control that part of the website(and all child paths). I feel like someone should build a starter kit for that.
English
1
0
0
302
dax
dax@thdxr·
rendering html on the server is easy client side rendering is easy the moment you want to render on the server and then hydrate the same code on client you get an explosion in complexity problem after problem to solve
English
32
14
596
43.1K
Kevin Thomas Van Cott
Kevin Thomas Van Cott@KevinVanCott·
I also want to hear what you think is missing from TanStack Pacer. Our goal is NOT to make this an "everything" library like lodash, RxJs, or Remeda. We're scoped to slowing down or speeding up func executions (client-side for now), but there are more ways that this could grow.
English
2
0
4
432
Kevin Thomas Van Cott
Kevin Thomas Van Cott@KevinVanCott·
Over the past couple of months, I've built out the core of our new TanStack Pacer library. It has the 5 original primitives that I planned to build with sync and async variations, and multiple framework hooks for each utility Debouncing Throttling Rate Limiting Queuing Batching
Kevin Thomas Van Cott tweet media
English
3
7
113
6.1K
Reginaldo
Reginaldo@RegiByte·
@jaketoolson @tan_stack @tannerlinsley The QueryClientProvider is not passed explicitly when you use the integration with query, the call `routerWithQueryClient` wraps the app root component in a provider already This is useful for preloading stuff in the server with queryClient.prefetchQuery and such
English
1
0
3
1.6K
Reginaldo
Reginaldo@RegiByte·
Important note for @tan_stack start users: please please make sure your server query client is created with the router If it's declared globally you will have issues with the server sharing state between requests which is very bad @tannerlinsley can we add this to the docs?
Reginaldo tweet media
English
15
28
472
39.9K
mathurah
mathurah@mathurahravi·
putting together a lil community of designers/design engineers making cool things! lmk if you wanna join!
mathurah tweet media
English
615
39
1.6K
137.7K
yurrr_👺🤧
yurrr_👺🤧@yousseffitX2172·
@__phuoc @bleachdump @LowKickLuke @patriottakes @Acyn It does not. Buddy I know more about economics than you if your age was doubled. It’s literally my job. Industry is not the only thing that drives economics. You can have services like accounting, finance, tourism, etc.
English
2
0
1
29
Acyn
Acyn@Acyn·
Trump: China will now pay a big number to our treasury. This is all taxes. And don't let them keep telling you that this is a tax on our people. I hate that. You know, they say it's a tax. No.
English
1.3K
464
3.1K
2.2M