mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-07-08 14:35:09 +00:00
* 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>