ui
ui copied to clipboard
fix(/colors): color copy not working due to nuqs adapter
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 useDesignSystemParam → useQueryStates (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 is attempting to deploy a commit to the shadcn-pro Team on Vercel.
A member of the Team first needs to authorize it.
hmm fixed in https://github.com/shadcn-ui/ui/pull/9056. Sorry I did not see yours first.