Greg Ziegan
Greg Ziegan

Reputation: 5

How to implement long polling with Relay?

Every 15 seconds, I need to refresh the data in all the fragments on one of my Relay containers. Is there a simple way to do this?

I have tried relay.forceFetch({...}) but this error occurs:

Uncaught Invariant Violation: RelayStoreData.buildFragmentQueryForDataID(): Cannot refetch record `client:-8564613888_first(100)` without a path.

None of my variables are changing, and the documentation states that all the fragments will be refetched if forceFetch is handed an empty set.

I am not sure what the error warning means by "path" here.

Upvotes: 0

Views: 725

Answers (1)

Related Questions