Does replacing a list of components with new ones of the same name break links?

This has probably been asked before but I can’t find it when I search.

I have some icons I need to replace. What I have done is to make a branch where I have made the new components, they have the same names as the old ones but they are different components. Then I will delete the old ones from the branch and merge and hopefully all of the new ones will replace the old ones keeping any links intact because the names were the same. Will this work or will this break any links?

Thanks

Since you created new components I suppose these links will not be kept. Having the same name is not sufficient, even because Figma allows you to have multiple components with the same name. Internally Figma is probably maintaining an ID for the component which is the one used to create the links - I’m guessing.