Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance Boosts #107

Merged
merged 20 commits into from
Feb 29, 2024
Merged

Performance Boosts #107

merged 20 commits into from
Feb 29, 2024

Conversation

thejessewinton
Copy link
Contributor

@thejessewinton thejessewinton commented Feb 28, 2024

Implements better performance in the app router.

  • Optimistically updates the UI on like and unlike, giving immediate feedback.
  • Optimistically updates the UI on new post creation, and when editing posts, giving immediate feedback.
  • Gets rid of DOMParser, which sometimes threw non-breaking errors on the client, in favor of node-html-parser; better performance for rendering the views.
  • Brings in @prisma/adapter-planetscale, using the PlanetScale serverless driver to run queries under the hood.

Copy link

vercel bot commented Feb 28, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
beam ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 28, 2024 8:36pm

@@ -56,8 +69,7 @@ const EditProfileDialog = ({
const onSubmit: SubmitHandler<EditFormData> = (data) => {
editUserMutation.mutate(
{
name: data.name,
title: data.title,
...data,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need a copy or can we pass data?

@thejessewinton thejessewinton merged commit d2dd09b into main Feb 29, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants