dub icon indicating copy to clipboard operation
dub copied to clipboard

[FEAT]: use RSCs in @dub/ui Fixes

Open versecafe opened this issue 7 months ago • 11 comments

Fixes https://github.com/dubinc/dub/issues/567

Goal

Reduce client side load and improve initial input delay times by taking advantage of RSCs in Next rather than having tsup apply a "use client"; banner over the entire package. Relies on

/** @type {import('next').NextConfig} */
module.exports = {
  transpilePackages: ["@dub/ui"],
  ...
}

This can be continually improved by more carefully crafting components to minimize client code inside in things such as the Nav & Suspense boundaries setup in preparation for ppr becoming stable.

versecafe avatar Jan 19 '24 16:01 versecafe