build: fix hot reloading
Thanks to @jure for doing the ground work on this in pubsweet/pubsweet-starter!45 (merged)
There's still an issue where anything inside an Apollo Query
(which is the entire app) loses state when reloaded. I think this is due to the "Loading..." message which is momentarily displayed causing the tree to be unmounted. I'm not sure if this is normal though.