From ff6402df1abefd0b114852bbfa387d6383573915 Mon Sep 17 00:00:00 2001 From: atcastle Date: Mon, 9 Aug 2021 10:47:09 -0700 Subject: [PATCH] Add data-nimg attribute to image component --- packages/next/client/image.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/next/client/image.tsx b/packages/next/client/image.tsx index 0a862497ebc1a..44328a25a3a8d 100644 --- a/packages/next/client/image.tsx +++ b/packages/next/client/image.tsx @@ -607,6 +607,7 @@ export default function Image({ loader, })} decoding="async" + data-nimg style={imgStyle} className={className} /> @@ -616,6 +617,7 @@ export default function Image({ {...rest} {...imgAttributes} decoding="async" + data-nimg className={className} ref={(img) => { setRef(img)