Components: refactor Flex
to pass exhaustive-deps
#41507
Merged
Flex
to pass exhaustive-deps
#41507