You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to replicate the functionality of returnPartialData and have two HOCs, "ThreadData" and "ThreadDataPartial".
When I do ThreadData(ThreadDataPartial(ThreadPage))) I get stuck in an infinite rendering loop.
The only thing that stops it is changing the query inside the HOCs. They do have different query names but it doesn't make a difference. If the variables are the same (e.g., thread(id: 123) { ... }) the loop happens.
Is this the recommended way for replicating the lost functionality of returnPartialData, and if so, how do I avoid getting stuck in a loop?
The text was updated successfully, but these errors were encountered:
scf4
changed the title
Running the same type of query results in infinite loop
Running the same query twice in a component results in infinite loop
Apr 3, 2017
scf4
changed the title
Running the same query twice in a component results in infinite loop
Running similar query twice in a component results in infinite loop
Apr 3, 2017
@scf4 Thanks for opening an issue! Could you provide more information on what exact queries you are running? A reproduction using react-apollo-error-template would be best.
I'm trying to replicate the functionality of
returnPartialData
and have two HOCs, "ThreadData" and "ThreadDataPartial".When I do
ThreadData(ThreadDataPartial(ThreadPage)))
I get stuck in an infinite rendering loop.The only thing that stops it is changing the query inside the HOCs. They do have different query names but it doesn't make a difference. If the variables are the same (e.g.,
thread(id: 123) { ... }
) the loop happens.Is this the recommended way for replicating the lost functionality of
returnPartialData
, and if so, how do I avoid getting stuck in a loop?The text was updated successfully, but these errors were encountered: