'Firestore, when has to change field name during service

I need to change the String field stored in Firestore to a List

The idea that comes to my mind right now is to transform the list when users enter the first screen if it is not yet transformed into a list. However, if you do this, you have to execute the if conditional statement on the first screen every time.

It would be a very, very slight loss in terms of performance, but I think I am not satisfied somehow. Is there a more effective way?


(I put it in MongoDB Tag because thinking that it would be the same in this case)



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source