rsnext/packages/next/client
d-suke 13747476b8
should render the correct sizes passed when a noscript is rendered (#37161)
## Bug

- [x] Fixes #36807
- [x] Unit tests added

Please review this PR.

As shown in [this Issue](https://github.com/vercel/next.js/issues/36807), the noscript element does not render sizes correctly during SSR.
This change adds `noscriptSizes` to the props passed to `ImageElement` to generate the same `sizes` and `srcset` as the normal img tag that is actually rendered in the browser.
2022-05-24 19:25:05 +00:00
..
dev Fix: Cleaner error message when importing sass without it being installed in dev (#35051) 2022-05-22 06:56:18 +00:00
portal Use SWC to compile Next.js core server files (#27167) 2021-07-14 18:12:04 +00:00
streaming Drop the unstable web vital hook and remove exports of flush effects (#36912) 2022-05-14 21:20:24 +00:00
head-manager.ts correctly assess node equality when nonce attribute is present (#27573) 2021-11-10 19:31:32 -06:00
image.tsx should render the correct sizes passed when a noscript is rendered (#37161) 2022-05-24 19:25:05 +00:00
index.tsx Keep custom app as non server component (#37044) 2022-05-20 18:07:20 +00:00
link.tsx Avoid anonymous function in next/link (#37154) 2022-05-24 16:00:22 +00:00
next-dev.js Ensure hydration error doc link is shown with react 18 (#37074) 2022-05-20 19:04:27 +00:00
next.js Split up & tweak next/client initialization (#33838) 2022-03-07 17:09:55 +00:00
normalize-trailing-slash.ts fix basepath trailing slash (#15200) 2020-07-15 23:53:31 +00:00
page-loader.ts Add experimental config for basePath testing (#36843) 2022-05-12 16:47:34 +00:00
performance-relayer.ts Experimental: hook version of reportWebVitals (#28769) 2021-09-24 18:35:33 +00:00
request-idle-callback.ts upgrade to typescript 4.4.3 (#29112) 2021-09-16 18:06:57 +02:00
route-announcer.tsx Fix <RouteAnnouncer/> shouldn't announce initial path under strict mode and React 18 (#34338) 2022-02-14 19:18:39 +00:00
route-loader.ts Route Loader Trusted Types Violation Fix (#34730) 2022-05-03 23:22:08 +00:00
router.ts Custom app for server components (#33149) 2022-01-14 13:01:00 +00:00
script.tsx Adds inline script functionality to next/script for worker and beforeInteractive strategies (#36364) 2022-04-29 15:20:31 +00:00
trusted-types.ts Route Loader Trusted Types Violation Fix (#34730) 2022-05-03 23:22:08 +00:00
use-intersection.tsx fix: reset visible state when src/href changed (#35287) 2022-04-04 14:18:49 -04:00
views-index.tsx Update client router for tests (#36822) 2022-05-12 20:52:59 +00:00
views-next.js Fix client component hydration (#37134) 2022-05-24 14:54:26 +00:00
with-router.tsx Update to latest babel versions (#28174) 2021-08-17 09:18:08 +02:00