I am working on an MVP that deals with groups of users. Whenever a Group is selected, I am saving all the Group info (data type) as a custom state. I am doing this because I believe that by having all the info “there” I avoid many calls to the DB and the performance is enhanced.
At this stage of my project, the most sensitive info stored in a Group is userName and userEmail.
So my questions are:
- Is it a good practice to save such information as a Custom State ?
- Am I really enhancing performance by saving calls to the DB ?
- At this stage of my project (MVP with very few users) do you believe I should be concerned about security ?
Sorry if those are too basic concerns, but I am a total junior.