Skip to content

Commit fdf7b5b

Browse files
committed
Remove data-nextjs-frame-expanded
Name was misleading and not needed
1 parent e35f866 commit fdf7b5b

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

packages/next/src/client/components/react-dev-overlay/ui/components/call-stack-frame/call-stack-frame.tsx

+1-4
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,7 @@ export const CallStackFrame: React.FC<{
4646
} as React.CSSProperties
4747
}
4848
>
49-
<div
50-
data-nextjs-frame-expanded={!frame.ignored}
51-
className="call-stack-frame-method-name"
52-
>
49+
<div className="call-stack-frame-method-name">
5350
<HotlinkedText text={formattedMethod} />
5451
{hasSource && (
5552
<button onClick={open} className="open-in-editor-button">

test/lib/next-test-utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1676,7 +1676,7 @@ export async function getStackFramesContent(browser) {
16761676
const stackFramesContent = (
16771677
await Promise.all(
16781678
stackFrameElements.map(async (frame) => {
1679-
const functionNameEl = await frame.$('[data-nextjs-frame-expanded]')
1679+
const functionNameEl = await frame.$('.call-stack-frame-method-name')
16801680
const sourceEl = await frame.$('[data-has-source="true"]')
16811681
const functionName = functionNameEl
16821682
? await functionNameEl.innerText()

0 commit comments

Comments
 (0)