How can I memoize items that are constantly being updated by the onSnapshot listener? React, firebase
I am encountering an issue in my Firebase Group Counter app. If I make any CRUD changes in my app, all items that my onSnapshot function listens to are rewritten by this function and displayed in a different order. How can I ensure that the items are always displayed consistently, with the oldest item at the top and the newest at the bottom of my items list?