内部渲染:
console.log('render', User.length, loading, networkStatus)
当我打电话data.fetchMore
两次时,我得到:
render 100 false 7
render 200 false 7
render 300 false 7
而我期望:
render 100 false 7
render 100 true 1
render 200 false 7
render 200 true 1
render 300 false 7
在此示例中,它按预期工作(loading
变为 true):
https://github.com/zeit/next.js/tree/v3-beta/examples/with-apollo
但不在我的代码中:
https://out-bkathectgx.now.sh/
https://github.com/lorensr/graphql-leaderboard/tree/a331af803b36ee2d65c85795d747e6cf4c83ba27
文件: