Wrap checkIsResourcesReady with useMemo to optimize rendering#7934
Wrap checkIsResourcesReady with useMemo to optimize rendering#7934Copilot wants to merge 2 commits intochore/i18n-pluginfrom
Conversation
|
|
|
Co-authored-by: caohuilin <12605189+caohuilin@users.noreply.github.com>
Summary
Addresses review feedback on #7926 to memoize
checkIsResourcesReadyinuseModernI18nhook.The function was being called on every render. Now wrapped with
useMemowithcurrentLanguageandi18nInstanceas dependencies:Related Links
Checklist
pnpm run change.💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.