rsnext/packages
Joe Haddad c8fa284854
Control <Image /> prefetching with React (#18904)
This pull request fixes `<Image />` not updating when new props are passed by removing external DOM mutations and relying on React to do it instead.

As an added bonus, I've extracted the intersection observer from both the `<Image />` and `<Link />` component, as their instance can be shared!

The increase in size is minor (+3B), and actually a decrease for apps using both `<Image />` and `<Link />`.

---

Fixes #18698
Fixes #18369
2020-11-06 23:03:15 +00:00
..
create-next-app v10.0.2-canary.3 2020-11-06 15:24:16 -06:00
eslint-plugin-next v10.0.2-canary.3 2020-11-06 15:24:16 -06:00
next Control <Image /> prefetching with React (#18904) 2020-11-06 23:03:15 +00:00
next-bundle-analyzer v10.0.2-canary.3 2020-11-06 15:24:16 -06:00
next-codemod v10.0.2-canary.3 2020-11-06 15:24:16 -06:00
next-env v10.0.2-canary.3 2020-11-06 15:24:16 -06:00
next-mdx v10.0.2-canary.3 2020-11-06 15:24:16 -06:00
next-plugin-google-analytics v10.0.2-canary.3 2020-11-06 15:24:16 -06:00
next-plugin-sentry v10.0.2-canary.3 2020-11-06 15:24:16 -06:00
next-plugin-storybook v10.0.2-canary.3 2020-11-06 15:24:16 -06:00
next-polyfill-module v10.0.2-canary.3 2020-11-06 15:24:16 -06:00
next-polyfill-nomodule v10.0.2-canary.3 2020-11-06 15:24:16 -06:00
react-dev-overlay v10.0.2-canary.3 2020-11-06 15:24:16 -06:00
react-refresh-utils v10.0.2-canary.3 2020-11-06 15:24:16 -06:00