Replies: 1 comment 16 replies
-
FWIW, anything resembling
I'm open to proposals here, but given our own lack of experience in this area, this is something that would likely require significant involvement by the community - requirements, design, and implementation. |
Beta Was this translation helpful? Give feedback.
16 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to have serverside rendering together with rtk-query. I read through the issue on the old repository but I'm not using NextJs nor do I know exactly which components are rendered on the page because this can change depending on a config that I do not control.
I would like to propose the implementation of a similar feature to the getDataFromTree function from Apollo. In order to do this, it would be necessary to dispatch the action on the server. This does not happen at the moment because
useEffects
aren't exercised on the server.It could be possible to add a
ssrMode
flag tocreateApi
like the one on the ApolloClient which leads to the queries being fired once on the server.I created an example of how I think this could work after the events are also fired once on the server https://github.com/barnabasJ/redux-ssr-example
I also create an example of how it works with apollo here: https://github.com/barnabasJ/apollo-ssr-example
Beta Was this translation helpful? Give feedback.
All reactions