When reading the redux doc I found that the doc mentioned this:
Still, you should do your best to keep the state serializable. Don\'t put anything
Adding to what @Timo said , If you want to setup relation between 2 states in your state tree and use computed values, reselect
is the best suitable fit for that scenario. It allows to creareselectors
which can be used to define computed states. In your case author
can be created using a selector on top of book
. https://github.com/reactjs/reselect