dub
dub copied to clipboard
[FEAT]: use RSCs in @dub/ui Fixes
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.