Closed Lalitha-Iyer closed 1 week ago
Hi @Lalitha-Iyer, the request is very particular, because without the subscription an important relay feature is lost and risks showing inconsistent data within the application.
You say that you have few cases of mutations/updates and data invalidation, and in those few cases how do you manage the update of the various components?
Furthermore, subscription is also used when executing queries, for example one query takes the value of a field x = 10, and a second query asks for the same field and the server replies x = 11. this, through subscriptions, updates all the components that use x
Hi! 👋
Firstly, thanks for your work on this project! 🙂
I have been looking at improving the performance of our application. Our application is mostly read-heavy and has few use cases of mutations/updates/data invalidation. So store subscriptions are not really useful to us. By turning off subscriptions in a patch I measured significant wins w.r.t responsiveness of our application. Would it be useful to have an option in the
useQuery
anduseFragment
hooks to turn off subscriptions?Here is the diff that solved my problem:
This issue body was partially generated by patch-package.