We store the votes in an object and when receiving in the reducer we transform it so that the data to be passed in the view gets their respective votes per polls.
To maintain an updated view of the data: DB - store/reducer we could save the reference in the database as at the moment removing a poll won't be deleting the vote references in the DB.
We store the votes in an object and when receiving in the reducer we transform it so that the data to be passed in the view gets their respective votes per polls.
To maintain an updated view of the data: DB - store/reducer we could save the reference in the database as at the moment removing a poll won't be deleting the vote references in the DB.