mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-07-03 01:18:38 +00:00
a409271270ad3a5d121e21f037c28bfaff912fc7
* fix(create): prevent customizer reset when template query param is set Use shallow nuqs updates and remove racing picker effects so selections persist on /create?template=start. Sync preset to URL once across hook instances and add regression tests for preset URL encoding. Fixes #11060 * fix(create): apply undo/redo via shallow preset update Undo/redo went through router.replace, which triggers a full server navigation that resets the preset on prod (#11060). Route it through the shared shallow search-params update instead, and keep the useSearchParams reader so the transient values nuqs emits mid-update are not recorded as phantom history entries. * fix(create): satisfy typecheck and prettier in search-params test Add the required `template` field to the first buildPresetUrlUpdate fixture so it matches DesignSystemSearchParams, and apply prettier formatting to search-params.ts and its test (both were failing format:check). --------- Co-authored-by: shadcn <m@shadcn.com>
shadcn/ui
A set of beautifully designed components that you can customize, extend, and build on. Start here then make it your own. Open Source. Open Code. Use this to build your own component library.
Documentation
Visit https://ui.shadcn.com/docs to view the documentation.
Contributing
Please read the contributing guide.
License
Licensed under the MIT license.
Description
Languages
TypeScript
89.8%
MDX
6.8%
CSS
3.3%
