Have I understand this correct?
Lets say the website has a list of users which I can delete or add a new user
If I had no back-end, this is what it would look like, correct?
1. The users is saved in redux with its info2. User getting deleted: I delete that specific user from redux3. Adding a new user: I insert a new user with its info in redux
But how does the flow work with a backend(nodejs/express in this case)?
Maybe like this?:
1. I visit the website(the website starts). and now I fetch all the users from the DB and then inserts them all in redux where I fetch the data with react to be able to show it on the page2. User getting deleted: I delete the user from the DB AND from redux(or should nothing be done in redux in this case, since redux is going to get updated the second I delete the user from the db, or how does this work?)3. Adding a new user: same goes here as for nr 2