Alessia Bellisario

Results 136 comments of Alessia Bellisario

Thanks @c10b10! Just to clarify, does the issue only happen with the `subscriptions-transport-ws` subprotocol? If that's the case and you need to fork the server too, you can find that...

Hi @c10b10 πŸ‘‹ Your reproduction was _very_ helpful, thanks! An important element in reproducing this bug is related to your specific WebSocket API (and explains why we don't see it...

@c10b10 I've confirmed this is a timing issue with React 18's automatic batching: wrapping `useSubscription`'s `setResult` in [`flushSync`](https://react.dev/reference/react-dom/flushSync#flushing-updates-for-third-party-integrations) produces the "old" behavior by forcing a re-render for each message, even...

Update: I've closed https://github.com/apollographql/apollo-client/pull/11066 with [a note](https://github.com/apollographql/apollo-client/pull/11066#issuecomment-1638237020) after considering @phryneas's comments about whether `flushSync` is appropriate here (not to mention tying `useSubscription` to `react-dom` via `flushSync` import). Instead, I've opened...

πŸ‘‹ If anyone has a runnable reproduction here, or can create one using our RN testbed https://github.com/apollographql/rn-apollo-client-testbed, that would be much appreciated!

Hi @robiot πŸ‘‹ Thanks for sharing your approach here! This looks like a question for the community, so you may want to consider re-posting to our [Discourse forum](https://community.apollographql.com/) or [Discord...

Hi @mikebm πŸ‘‹ Sorry for the delay here! There have been considerable changes to the library since this PR was openedβ€”`src/react/data/QueryData.ts` no longer exists, for oneβ€”and the linked issue has...

Thanks to those who've provided feedback/shared approaches they're currently using in this thread! It's great to see so many different ideas and approaches in the testing space. I've picked up...

Hi all πŸ‘‹ I've created an RFC (https://github.com/apollographql/apollo-client/issues/11705) for the schema-driven testing work I described above. I'm going to close this issue out, since that RFC is a better place...

Hi all πŸ‘‹ Both the devtools and `@apollo/client` have put out recent releases with various improvements to the registration mechanism that should resolve this issue. Please ensure you are running...