I am using one signal notifications and I want to push the notifications received object to local storage, I want it to save as array so user can browse through all received notification.
Be able to delete the read notification from locaStorage as well.
Seems to me that if you combine what you’re doing in getNotifications to get the current lot, and use that instead of initializing your array to [] every time, you’d have what you’re looking for.