0
每15秒钟,我需要刷新我的一个继电器容器上所有片段的数据。有没有简单的方法来做到这一点?如何使用Relay实现长轮询?
我已经试过relay.forceFetch({...})
但出现此错误:
Uncaught Invariant Violation: RelayStoreData.buildFragmentQueryForDataID(): Cannot refetch record `client:-8564613888_first(100)` without a path.
我的变量没有正在发生变化,文档指出,如果forceFetch
被交给空集的所有片段将被重新取出。
我不确定错误警告是指“路径”在这里。
这是一个错误的。如果您有时间,可否请您尽可能详细地在Relay GitHub上记录这个问题(在Relay Playground上的repro会是理想的)。 https://facebook.github.io/relay/prototyping/playground.html#/ – steveluscher
刚刚登录,感谢您的及时回复! https://github.com/facebook/relay/issues/655 –