I am currently working for an Austrian company, we are developing a document management system for Windows. In early 2017 we started creating a web application using Angular. However we started to get some problems with the state of the app.
We are thinking of using Redux as a state-manager, we have one concern though.
Let's say we have a table with 2 documents
|--------------------------------|
| Document1.pdf |
|--------------------------------|
| Document2.pdf |
|--------------------------------|
We also have a preview of the selected document.
Say we click on Doc 1 (it takes the server 5 seconds to load the document). 1 second after clicking on Doc1 we click on Doc2 (it takes the server only 1 second to load the document). A second later Doc2 shows up in the preview, however 4 seconds the later Doc1 gets loaded and shows up in the preview. Although we currently have Doc2 selected.
When using Redux do we have to manually check for the "correct" document or does the framework everything for us and we just have to implement the server calls without thinking of app's state?