-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Server side rendering with getRunningOperationPromises #2477
Comments
Good observation - this should be scoped per store instance. Could be difficult though as it is outside of a middleware 🤔 |
Could you give some feedback over in #2481 please? |
@phryneas Thank you for taking care of it so quickly |
This will still take some time until it makes in - we'll have to carefully weigh if and how we can break the existing implementation - since the new one would have to be You can isntall the PR-patched package from the CodeSandbox registry in the meantime though. |
Marking this as done because it's in 1.9 beta. |
Thank you @markerikson @phryneas |
Hi
I've try to take a look at the ssr-experiment exemple here:
I've:
getRunningOperationPromises
On the
beedrill
fetch this is what I can see when displaying running promises:bulbasaur
when our page are just concern aboutbeedrill
?runningPromises
created in the api be unique to each page and not sharing across different page ? otherwise on large scale apps this could be an issue if we are waiting for the queries of another pagerunningPromises
should be isolated to each page on SSR ?createListenerMiddleware
should we have acreateApiMiddleware
? Then on server side, we can have a different middleware instance for each page that does not share valuesThis is the debug line that I've added in redux:
@phryneas @markerikson
The text was updated successfully, but these errors were encountered: