What's Changed
🐞 Fixes
react-x/no-nested-component-definitions: fixed a regression where nested components wrapped inuseCallback(e.g.const C = useCallback(() => <div />, []);) were no longer reported — the rule now resolves the component name through well-known component wrappers (memo,forwardRef,useCallback,observer, react-redux'sconnect, Relay'screate*Containerhelpers, Apollo'sgraphql, andwith*HOCs, including curried forms likeconnect(...)(Component)) up to the enclosing variable declarator, and no longer misreports array method callbacks (flatMap,forEach,reduce, etc.) in list rendering patterns. (#1928, closes #1927)
🏗️ Internal
- Bumped
effectto3.22.1,eslint-plugin-jsdocto63.3.3,textlintto15.8.0,js-yamlto4.3.1,axiosto1.19.0,nxto23.1.1,viteto8.2.0,@vitejs/plugin-reactto6.0.5,fumadocsto16.14.0,fumadocs-mdxto15.2.2,preactto10.29.8,globalsto17.9.0,lucide-reactto1.28.0,@types/reactto19.2.18,@types/react-domto19.2.4, andpnpmto11.20.0.
Full Changelog: v5.18.1...v5.18.2
Attestation
https://github.com/Rel1cx/eslint-react/attestations/38852008