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
If the with-apollo example is used, a memory leak of apollo objects occurs in node in ssr. ex) ApolloLink, ApolloClient, ApolloCache, ApolloError
When useQuery is used, memory is released because useEffect calls queryData.cleanup().
but, in ssr, useEffect does not call.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
If the with-apollo example is used, a memory leak of apollo objects occurs in node in ssr.
ex) ApolloLink, ApolloClient, ApolloCache, ApolloError
When
useQuery
is used, memory is released becauseuseEffect
callsqueryData.cleanup()
.but, in ssr,
useEffect
does not call.In apollo-client test code, https://github.com/apollographql/apollo-client/blob/main/scripts/memory/tests.js#L236
after
getDataFromTree
,client.stop()
is called.How to solve with-apollo's example?
When to run
apolloClient.stop()
?Has any developer experienced this issue?
Beta Was this translation helpful? Give feedback.
All reactions