Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

A full rewrite of Beam!
Context
We knew that we wanted to update Beam to improve performance, and update it to use more current implementations of the tools that it's built on. This release, what should be formally seen as a
2.0does that.App Directory
The first big change is the use of Next 14 and the app directory. Since migrating our marketing site to take advantage of the newest versions of React and Next, there have been significant benefits, not only to performance, but also to DX. When taking a top-down rewrite into account, I wanted to bring those benefits over to Beam. This new version takes full advantage of it, statically rendering the first page of posts on the index, and dynamically rendering paginated posts after. Initial load times for all pages and posts are almost instant.
tRPC
We're still using tRPC across the app, but we use the new server-side utilities to fetch data, and then use the old
useMutationhook to mutate it. We're using the new tRPC apis, released in version 10, which offer better performance, and more clarity when developing. Another DX win.cmdk & Radix
Radix replaces Headless UI across the app; we were using Radix for a few components already, so in this new implementation, Radix replaces any implementation that was previously using Headless UI! At the same time,
cmdkis brought into the search dialog to replace the custom solution that had been used before, giving us an accessible, user-friendly search menu.SVGO
To manage SVG icons, we're now using a simple implementation of the SVGO command line tool. When you want to add a new icon to the app, add the svg to
src/svgand run:The newly generated SVG component will be output to
src/app/_svg, and is ready to use.Please feel free to discuss below, and provide any feedback on the changes; they're extensive, but a top-down rewrite is going to be!