During local development it's common to add or remove code which may change the cache size between renders. Add a failing test to show that currently (without the compiled fast refresh check) this issues a warning and reuses the cache which may have stale values. ghstack-source-id: efdcb017ba3bdadd88b1f8bb5523b1a9f6217eb5 Pull Request resolved: https://github.com/facebook/react/pull/30662