Closed RobinLebhar closed 4 years ago
My bad it seems that it works as intended ? But I don't understand why the server side dispatch that is called in getStaticProps is not sent to the client ? Does it means that I have in the componentWillMount to call another dispatch (client side) and set the user list using the props that have been passed by the server ?
export async function getStaticProps() {
const store = initializeStore()
const usersList = await store.dispatch.github.fetchUsers() // this is not sent to the client
return {
props: {
usersList,
},
}
}
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
Bug report
with-rematch example, data not dispatch in the store
In the with-rematch example, we display a list of github users and dispatch user data to the store but they do not seems to be set in the store.
To Reproduce
Expected behavior
The github users should appear in the redux store
Screenshots