It depends on the country. Usually, the residence permit holder must live in the country for more than 183 days a year, otherwise their residence permit will not be extended. However, in some countries, for example in Greece, there are no minimum residence conditions.
Requirements for applicants for a residence permit for financially independent persons