Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ssrMode also disables possibility of using polling #11380

Open
MaPoKen opened this issue Nov 22, 2023 · 2 comments
Open

ssrMode also disables possibility of using polling #11380

MaPoKen opened this issue Nov 22, 2023 · 2 comments
Labels
ℹ needs-more-info Needs more information to determine root cause

Comments

@MaPoKen
Copy link

MaPoKen commented Nov 22, 2023

https://github.com/apollographql/apollo-client/blob/7a49cd0db77f25917fc24d7c4a35b4bb68ec2c3e/docs/source/performance/server-side-rendering.mdx#L59C153-L59C153

Struggled with enabling polling with our Apollo Client this week, would be a nice mention that SSRMode also disables the possibility of using the Polling feature!

@phryneas
Copy link
Member

ssrMode is meant for situations where you want to render your app until is has fetched all data, so you can really render your app once on the server and then throw the full app away. A ssrMode app should never exist for a longer period of time.

Polling on the other hand makes only sense if your application exists for a longer amount of time.

Can you elaborate in which situation you are using it here? Without knowing details, it sounds to me that you might be in a situation where you should never be using ssrMode.

@jerelmiller jerelmiller added ℹ needs-more-info Needs more information to determine root cause 🏓 awaiting-contributor-response requires input from a contributor labels Nov 28, 2023
@MaPoKen
Copy link
Author

MaPoKen commented Nov 28, 2023

We have a hybrid solution, where one part of the application is using SSR (articles generated from Graphql) and another is not using SSR(Forum system, in current development).

However my inquiry here does not really relate to a specific application, i just wanted to address how the documentation about ssrMode could be further improved by giving some more information that this mode limits the usage of other functionality, E.G polling.

My problem was due to my own ignorance with SSRmode but could have been solved earlier with some further details in this section, or in the polling section.

@github-actions github-actions bot removed the 🏓 awaiting-contributor-response requires input from a contributor label Nov 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ℹ needs-more-info Needs more information to determine root cause
Projects
None yet
Development

No branches or pull requests

3 participants