mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
Enables AI agents to programmatically access the runtime metadata of the current page. At the moment, we only include the segment trie details, but this endpoint will be open to extension. Like `get_errors`, we support collecting information from multiple tabs.
17 lines
251 B
TypeScript
17 lines
251 B
TypeScript
'use client'
|
|
|
|
export default function ParallelError({
|
|
error,
|
|
reset,
|
|
}: {
|
|
error: Error
|
|
reset: () => void
|
|
}) {
|
|
return (
|
|
<div>
|
|
<h2>Parallel Error: {error.message}</h2>
|
|
<button onClick={reset}>Try again</button>
|
|
</div>
|
|
)
|
|
}
|