Mark Dalgleish's Avatar

Mark Dalgleish

@markdalgleish.com.bsky.social

πŸ¦„ CSS Modules co-creator / πŸ’Ώ Remix + React Router at Shopify / 🧁 Vanilla Extract / MelbJS organiser / dad x4

6,365 Followers  |  74 Following  |  82 Posts  |  Joined: 24.04.2023  |  1.6865

Latest posts by markdalgleish.com on Bluesky

Preview
React Router and React Server Components: The Path Forward React Router's RSC support is more than just a new feature. It's a major architectural shift that makes it a much more powerful library while also making Framework Mode less coupled to any particular ...

RR + unstable RSC support has shipped. Please give it a go and let me know about any pain points.

remix.run/blog/react-r...

16.07.2025 20:07 β€” πŸ‘ 78    πŸ” 13    πŸ’¬ 6    πŸ“Œ 1

This is very exciting! React router and Parcel has shown the proper boundary of RSC support between application layer and as bundler layer. Jacob shared their work with me early and that has been guiding me better for RSC support on Vite. Thanks for the shout out in the post!πŸ™

17.05.2025 07:50 β€” πŸ‘ 27    πŸ” 4    πŸ’¬ 1    πŸ“Œ 1

RSC support in React Router powered by Parcel! 🀩

16.05.2025 16:24 β€” πŸ‘ 95    πŸ” 12    πŸ’¬ 2    πŸ“Œ 1
Preview
React Router RSC Preview React Router's preview support for React Server Components is now available

Check it out - RSC in React Router!

Been working on this with @ebey.bsky.social and @markdalgleish.com for a little bit - pumped for folks to start playing with it!

remix.run/blog/rsc-pre...

16.05.2025 15:53 β€” πŸ‘ 101    πŸ” 22    πŸ’¬ 6    πŸ“Œ 7

React Router v7.5 brings a revolutionary approach to lazy loading route code. You can now lazy load individual route properties instead of everything at once, making your initial load time lightning fast!

=> remix.run/blog/faster-... by @markdalgleish.com

23.04.2025 11:38 β€” πŸ‘ 8    πŸ” 2    πŸ’¬ 1    πŸ“Œ 0
Preview
Faster Lazy Loading in ReactΒ RouterΒ v7.5+ React Router v7.5 now supports a faster, more granular approach to lazy loading route code in Data Mode

I wrote a blog post πŸ‘€πŸ‘‡

In React Router v7.5 we’ve introduced a faster, more granular way to lazy load routes.

This new API was designed to support the upcoming middleware API, but it also unlocked some extra performance optimizations across the board.

remix.run/blog/faster-...

18.04.2025 00:56 β€” πŸ‘ 77    πŸ” 11    πŸ’¬ 0    πŸ“Œ 1

Same!

I started using this before there were docs or any official announcement for it and was slightly concerned I was doing something I wasn’t supposed to πŸ˜…πŸ˜…πŸ˜…

Glad it’s now been made official πŸ’

09.04.2025 06:57 β€” πŸ‘ 5    πŸ” 1    πŸ’¬ 0    πŸ“Œ 0
Preview
β€œJust use Vite”… with the Workers runtime The Cloudflare Vite plugin integrates Vite, one of the most popular build tools for web development, with the Workers runtime. Today, we are announcing the 1.0 release and official support for React R...

Super excited to see @cloudflare.social launching v1 of their @vite.dev plugin, with first class React Router v7 support.

Huge shout out to James Opstad for working with us to ensure support on top of our recent Vite Environment API work.

blog.cloudflare.com/introducing-...

08.04.2025 22:20 β€” πŸ‘ 58    πŸ” 9    πŸ’¬ 0    πŸ“Œ 2

So excited for this @vite.dev documentary. I really enjoyed watching the @react.dev one.

15.03.2025 21:17 β€” πŸ‘ 26    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
Split Route Modules React Router v7.2’s framework mode now supports automatic code splitting of route modules

πŸš€ Just published a blog post about the new Split Route Modules feature I shipped in React Router v7.

remix.run/blog/split-r...

06.03.2025 23:45 β€” πŸ‘ 62    πŸ” 9    πŸ’¬ 1    πŸ“Œ 0

Oh good point, we should bump that.

04.03.2025 08:28 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

$ pnpm create react-router

04.03.2025 00:01 β€” πŸ‘ 24    πŸ” 1    πŸ’¬ 1    πŸ“Œ 0

Yep, this was done to support what Vercel were doing with Remix (originally a custom fork).

07.02.2025 03:08 β€” πŸ‘ 4    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

You can split your server into multiple builds, each with a subset of the full route tree.

07.02.2025 03:03 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

You guys aren’t going to believe this, but today I used a cable from my big box of old cables.

07.02.2025 01:48 β€” πŸ‘ 4766    πŸ” 165    πŸ’¬ 381    πŸ“Œ 67
Post image

COMING SOON: Experimental @vite.dev Environment API support in React Router v7.

Check this out β€” a single `vite build` command can co-ordinate a full client + multi-server build. Previously this was only possible via the `react-router` CLI.

We're β€œjust a Vite plugin” again 😎

06.02.2025 23:37 β€” πŸ‘ 180    πŸ” 12    πŸ’¬ 10    πŸ“Œ 3

> someone says something funny on the group call
> unmute
> laugh
> mute

30.01.2025 21:20 β€” πŸ‘ 80    πŸ” 5    πŸ’¬ 3    πŸ“Œ 1

In library mode it’s up to you to manage loading route modules lazily, and you can choose to author your routes in multiple files. Framework mode is just doing this work for you.

30.01.2025 02:34 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image Post image

With React Router’s upcoming Split Route Modules feature that I’ve been working on, I’ve got the chunk name in the build output now so it’s easier to tell what’s downloading when.

Here’s a before and after in the network tab.

30.01.2025 01:59 β€” πŸ‘ 34    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Private LLM salesman incoming.

30.01.2025 00:13 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

The chat interface is why it’s often better than Google to me. I can easily ask follow up questions, ask for clarification, dive deeper into certain areas, provide personal context for more tailored advice.

30.01.2025 00:05 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

For me it’s replaced a lot of β€œHow to…” Google searches. Also good for personal advice, e.g. assisting with fitness and diet changes, helping me prepare for things I’m not familiar with, that sort of thing. Also just good for deep philosophical chats when I’m in the mood for that.

30.01.2025 00:02 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Having DeepSeek on my laptop gives me a similar feeling to seeing physical encyclopedias on the shelf at home when I was a kid.

29.01.2025 23:20 β€” πŸ‘ 20    πŸ” 0    πŸ’¬ 2    πŸ“Œ 0

Those X links really don’t look so great over here. I wish we could all just be friends.

28.01.2025 23:45 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 2    πŸ“Œ 0

Check out what I've been working on in React Router: Split Route Modules.

Ryan put together a neat demo of why this is so great for perf. With your client loader split into its own chunk, it can start running ASAP, even before the route component finishes downloading.

x.com/ryanflorence...

28.01.2025 23:43 β€” πŸ‘ 23    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

lol it’s okay.

23.01.2025 07:54 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Everything.

23.01.2025 07:53 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

We should all agree to start rebranding β€œplugins” to β€œmods.” So much cooler.

23.01.2025 02:34 β€” πŸ‘ 44    πŸ” 1    πŸ’¬ 3    πŸ“Œ 1
Trump and Obama sitting next to each other, Trump with a slight smirk talking to Obama who is smiling

Trump and Obama sitting next to each other, Trump with a slight smirk talking to Obama who is smiling

When competing framework authors hang out at a conference.

10.01.2025 01:04 β€” πŸ‘ 23    πŸ” 3    πŸ’¬ 0    πŸ“Œ 1

I think the way to strike the balance is to treat consumers like adults. If some implementation details are likely to change, then tell them.

08.01.2025 03:28 β€” πŸ‘ 5    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

@markdalgleish.com is following 20 prominent accounts