ui icon indicating copy to clipboard operation
ui copied to clipboard

fix(/colors): color copy not working due to nuqs adapter

Open devnjw opened this issue 1 week ago • 1 comments

Problem

Copying a color on the /colors page throws a runtime error:

[nuqs] nuqs requires an adapter to work with your framework.

Cause

The Toaster component was rendered outside the NuqsAdapter in the root layout. However, Toaster uses IconPlaceholder, which calls useDesignSystemParamuseQueryStates (nuqs hook). When a toast is triggered, it fails because it's not within the nuqs context.

Solution

Move the Toaster component inside the NuqsAdapter.

devnjw avatar Dec 13 '25 08:12 devnjw

@devnjw is attempting to deploy a commit to the shadcn-pro Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Dec 13 '25 08:12 vercel[bot]

hmm fixed in https://github.com/shadcn-ui/ui/pull/9056. Sorry I did not see yours first.

shadcn avatar Dec 15 '25 09:12 shadcn