Describe the bug
in Gutenberg 8.8 getEntityRecord and it's related functions ( getMedia etc. ) functions would return undefined when an entity didn't exist.
In Gutenberg 8.9 this now returns null. This is a backwards incompatible change as the recommended method by eslint to check for undefined is to do typeof value === "undefined" which returns false for null.
This will cause any plugin that previously made this check to start throwing errors as they'll be attempting property access on null. This can even cause the entire editor to crash, see https://github.com/Yoast/wordpress-seo/issues/15989.
To reproduce
Steps to reproduce the behavior:
Expected behavior
Backwards incompatible changes should not be made to functions without proper notice and deprecation.
Editor version (please complete the following information):
Additional context
Issue was identified and reported by others too on https://github.com/WordPress/gutenberg/issues/25033
Thanks so much for the swift response! I can confirm that 8.9.1 solved the issue