-
Notifications
You must be signed in to change notification settings - Fork 25
Tim/eng 1368 guides structure #3013
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
| form.setFieldValues(currentValues); | ||
| } | ||
| } | ||
| }, [searchParams, manifest, language]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: Missing form dependency in useEffect
The useEffect hook at line 84 is missing form in its dependency array. The effect reads form.state.values and calls form.setFieldValues, but only includes searchParams, manifest, and language as dependencies. This causes the effect to use stale form state, potentially leading to incorrect form updates or infinite loops when the form state changes.
Note
Introduces a dynamic, parameterized Guides system with step rendering; creates a dedicated Templates hub with sidebar filters; and updates navigation, UI, and config across docs.
app/guidesroutes (layout.tsx,page.tsx,[...slug]/page.tsx) with dynamic step rendering, TOC integration, and breadcrumbs.guide.toml, cache steps, conditional step inclusion via filename selectors, and render viaGuideForm,DynamicGuideBuilder,GuideStepsWrapper/Nav,StepContent.guides/**/guide-overview.mdxand a full example (performant-dashboards) with flows/options and step files.app/templateswith layout, sidebar filters (TemplatesSideNavwith URL-basedtype/language/category), and page rendering.TemplateGrid, richerTemplateCard(chips, deploy/blog/github), andCommandSnippetcomponent.templates/andguides/from catch-all route params and handling.Checkbox,Popover,Item*; tweakInput/Commandto usebg-card.cacheComponentsin Next config; switchrobots.txthost/sitemap; simplifypublic/sitemap.xml.@tanstack/react-form,@tanstack/zod-adapter,zod), new Radix packages; introduce Biome config; update TS configs tonextjs.json.Written by Cursor Bugbot for commit 2f5b495. This will update automatically on new commits. Configure here.