Log inSign up
Pedro Cattori
1,288 posts
Image
user avatar
Pedro Cattori
@pcattori
šŸ’æ @remix_run & @ReactRouter at @Shopify šŸŽ„ twitch.tv/pcattori Do sufficiently smart compilers dream of electric sheep?
Alexandria, VA
pedrocattori.com
Joined May 2022
194
Following
2,564
Followers

New to X?

Sign up now to get your own personalized timeline!

Create account

By signing up, you agree to the Terms of Service and Privacy Policy, including Cookie Use.

TermsĀ·PrivacyĀ·CookiesĀ·AccessibilityĀ·Ads InfoĀ·Ā© 2026 X Corp.
Don't miss what's happening
People on X are the first to know.
Log inSign up
  • Pinned
    user avatar
    Pedro Cattori
    @pcattori
    Dec 12, 2023
    Ternaries could be beautiful šŸ’„ šŸ‘‰ Read the article: pedrocattori.dev/blog/ternaries… @PrettierCode is asking for feedback on how to format ternaries. So whether you agree with me or not, make yourselves heard! šŸ‘‰ prettier.io/blog/2023/11/1…
    Image
    GIF
    87K
  • user avatar
    Pedro Cattori
    @pcattori
    Apr 9, 2024
    TIL @vitest_dev lets you colocated your tests in the same file as your implementation. So nice!
    Image
    89K
  • user avatar
    Pedro Cattori
    @pcattori
    Feb 21, 2024
    You can now select @remix_run directly from create-vite in @vite_js 's v5.2.1 release
    Image
    36K
  • user avatar
    Pedro Cattori
    @pcattori
    Oct 13, 2023
    šŸ‘€ remix.run/docs/en/dev/fu… Unstable Vite support has officially landed in the @remix_run repo! šŸŽ‰ Still early and have to land support for runtimes and custom servers before stable, but dang does it feel good to say: Remix runs on @vite_js šŸ”„
    377K
  • user avatar
    Pedro Cattori
    @pcattori
    Jun 7, 2024
    Typesafe route modules achieved internally at @remix_run + React Router v7 . All props (params, loader data, action data, etc.) all šŸ’Æ% inferred. If you ask me really nice, I might even share the TypeScript playground for you to try out soon šŸ˜‰
    Image
    43K
  • user avatar
    Pedro Cattori
    @pcattori
    Jan 25, 2024
    Happy to report that @Cloudflare Pages support in @remix_run 's Vite plugin is now merged! 🄳 Only officially support CF pages, since CF says not to use Workers Sites for fullstack apps: developers.cloudflare.com/workers/config… But if anyone wants to try with Workers, let me know how it goes!
    Image
    00:00
    52K
  • user avatar
    Pedro Cattori
    @pcattori
    Jun 5, 2024
    Look ma, no `useLoaderData<typeof loader>`! Coming soon to a React Router v7 (and probably will backport to @remix_run 2.x too) x.com/localhost_5173…
    Image
    44K
  • user avatar
    Pedro Cattori
    @pcattori
    May 22, 2023
    Should have done this a long time ago, but simplified types for `useLoaderData`, `useActionData`, `useFetcher` are coming to @remix_run ! Under-the-hood it uses a `Pretty` type helper to force TS to simplify the type. Got that from @mattpocockuk šŸ™ šŸ‘‰ github.com/remix-run/remi…
    Image
    34K
  • user avatar
    Pedro Cattori
    @pcattori
    Dec 22, 2023
    MDX routes in @remix_run are finally a joy to use thanks to @vite_js . The best part is that its still Remix. Want to grab data from your db? Use a `loader`. Same goes for all the Remix features you know and love. šŸ‘‰ Demo remix-blog-mdx.fly.dev šŸ‘‰ Repo github.com/pcattori/remix…
    Image
    37K
  • user avatar
    Pedro Cattori
    @pcattori
    Feb 20, 2024
    Remix Vite just landed in 2.7.0! 🄳 Most fulfilling thing I've shipped in my career so far. Loved collab'ing with @vite_js team & community, @DarioPiotrowicz & the @Cloudflare team, @hiroshi_18181 . Plus late night pairing sessions with @markdalgleish
    user avatar
    Remix šŸ’æ
    @remix_run
    Feb 20, 2024
    We are excited to announce the release of Remix v2.7.0 which stabilizes Remix Vite and Remix SPA mode We announced the unstable Vite plugin a little over 3 months ago. Now 75 closed issues and 136 pull requests later we are ready to call this plugin stable This release marks
    20K
  • user avatar
    Pedro Cattori
    @pcattori
    May 20, 2023
    New post: Typesafe error handling in TS! Check out my `asError` utility to coerce `unknown` thrown types to `Error`. Heavily inspired by this @kentcdodds post (kentcdodds.com/blog/get-a-cat…). It's another technique I use in the @remix_run compiler. šŸ‘‰ pedrocattori.dev/blog/typesafe-…
    Image
    35K
  • user avatar
    Pedro Cattori
    @pcattori
    Feb 16, 2024
    You can download @remix_run with stable @vite_js support now in the 2.7 prerelease! (2.7.0-pre.0) Try it out and let us know if you hit any bugs! Pro tip: you'll want to use the `release-next` branch in the docs to preview what they'll be like for 2.7 (remix.run/docs/en/releas…)
    35K
  • user avatar
    Pedro Cattori
    @pcattori
    Feb 22, 2023
    HMR + HDR in @remix_run is merged! How I feel right now: youtube.com/watch?v=ObWrdY…
    Image
    37K
  • user avatar
    Pedro Cattori
    @pcattori
    Dec 18, 2023
    Sneak peek... šŸ‘€ @remix_run + @vite_js + @Cloudflare All with šŸ”„ HMR + HDR šŸ”„
    Image
    11K
This post is unavailable.
Advertisement
Advertisement