USER-PREFERENCES: Id of the active preferences of the user
My backend retrieves that information and provides:
An array with id of active and inactive preferences
The information of the preference in a given array
With the front-end:
I use states and get the current active and inactive array of ids
I get the information of those to display it in the preferences menu or in the add dropdown
I change the values of states containing the identifiers, and using a useEffect, I modify another state that stores the information of the active and inactive preferences
I rearrange the back-end Flow of data:
Parse stores
My backend retrieves that information and provides:
With the front-end: