-
Notifications
You must be signed in to change notification settings - Fork 102
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
load data deferred #55
Comments
in this case (all on server and some on client) you need to implement filter only on client. do yo use the latest 1.0.x branch version? |
Yes, I'm using version Now I removed filter from server and added to But request is done on server because when page render I do not see that request on |
I don't khow how filtering on the client is not allowing to fetch deferred resources on the server. I've check your code and I don't see it. |
I'm on rc4 v1. I can see that when async connect hight order component load checks if there was already loaded on the server: https://github.com/Rezonans/redux-async-connect/blob/v1/modules/ReduxAsyncConnect.js#L110 So if I filter on the server this way: @asyncConnect([{
deferred: true,
promise: (options) => {
return options.store.dispatch(loadDeferredThing(options.params.id));
},
}])
|
I made a PR to illustrate my issue #63 |
In RC4, it looks like the filter parameter has moved from
|
Hi, I'm trying to figure out how to fetch 2 things: 1 always on server and client, and the second one only on server. I'm trying to follow this code: erikras/react-redux-universal-hot-example#928
But if I do in that way, with
filter
only on client I always fetch both things. Because it's not filtered on server code in any way.I've tryed to add
filter
onloadOnserver
function in this way:and deferred thing looks like this:
And it works! It do not make this request (
loadDeferredThing
) on server.The problem is not doing on client neither :/
Only when I go to other place in the app and back both request are done
The text was updated successfully, but these errors were encountered: