如何处理React History.Push()导致不希望的组件重新安装?
问题
Calling history.push() inside of a component seems to cause the entire react component to unmount and remount; causing pointless remote service calls.
具体来说,我有一个在组件条目上触发的远程服务调用。我不想重新安装组件,也不想重新运行服务调用(速度很慢)。
It seems like history.push(location.pathname + '...