Skip to content

Commit d2038f7

Browse files
committed
Fix overlay doc links to match restructured blocking-route.mdx anchors
Made-with: Cursor
1 parent fafdc83 commit d2038f7

1 file changed

Lines changed: 14 additions & 10 deletions

File tree

packages/next/src/next-devtools/dev-overlay/components/blocking-route-guidance/blocking-route-guidance.tsx

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,9 @@ export function BlockingRouteGuidance({
163163
prerendered as a static shell.
164164
</p>
165165
<FixDiff lines={SUSPENSE_WRAP_DIFF} />
166-
<DocsLink href={`${DOCS}#headers`}>See full example</DocsLink>
166+
<DocsLink href={`${DOCS}#wrap-in-suspense`}>
167+
Wrap in Suspense
168+
</DocsLink>
167169
</Collapsible>
168170

169171
<Collapsible title="Move the API call into a child component">
@@ -173,7 +175,9 @@ export function BlockingRouteGuidance({
173175
it. This keeps the parent prerenderable.
174176
</p>
175177
<FixDiff lines={MOVE_INTO_CHILD_DIFF} />
176-
<DocsLink href={`${DOCS}#headers`}>See full example</DocsLink>
178+
<DocsLink href={`${DOCS}#move-the-access-into-a-child`}>
179+
Move the access into a child
180+
</DocsLink>
177181
</Collapsible>
178182

179183
<Collapsible title="Using params or searchParams?">
@@ -185,7 +189,7 @@ export function BlockingRouteGuidance({
185189
</p>
186190
<FixDiff lines={PARAMS_DIFF} />
187191
<DocsLink href={`${DOCS}#params-and-searchparams`}>
188-
See full example
192+
Params and searchParams
189193
</DocsLink>
190194
</Collapsible>
191195

@@ -195,8 +199,8 @@ export function BlockingRouteGuidance({
195199
loads, but you lose granular control over what streams when.
196200
</p>
197201
<FixDiff lines={LOADING_JS_DIFF} />
198-
<DocsLink href={`${DOCS}#possible-ways-to-fix-it`}>
199-
See full example
202+
<DocsLink href={`${DOCS}#add-a-loadingjs-file`}>
203+
Add a loading.js file
200204
</DocsLink>
201205
</Collapsible>
202206
</div>
@@ -208,8 +212,8 @@ export function BlockingRouteGuidance({
208212
<code>cacheTag()</code> to revalidate when data changes.
209213
</p>
210214
<FixDiff lines={USE_CACHE_DIFF} />
211-
<DocsLink href={`${DOCS}#accessing-data`}>
212-
See full example
215+
<DocsLink href={`${DOCS}#cache-data-with-use-cache`}>
216+
Cache data with &ldquo;use cache&rdquo;
213217
</DocsLink>
214218
</Collapsible>
215219

@@ -220,8 +224,8 @@ export function BlockingRouteGuidance({
220224
the dynamic part streams in.
221225
</p>
222226
<FixDiff lines={STREAM_WITH_SUSPENSE_DIFF} />
223-
<DocsLink href={`${DOCS}#accessing-data`}>
224-
See full example
227+
<DocsLink href={`${DOCS}#stream-dynamic-data`}>
228+
Stream dynamic data
225229
</DocsLink>
226230
</Collapsible>
227231

@@ -233,7 +237,7 @@ export function BlockingRouteGuidance({
233237
</p>
234238
<FixDiff lines={SHORT_LIVED_CACHE_DIFF} />
235239
<DocsLink href={`${DOCS}#short-lived-caches`}>
236-
See full example
240+
Short-lived caches
237241
</DocsLink>
238242
</Collapsible>
239243
</div>

0 commit comments

Comments
 (0)