Open ziasultan2 opened 3 years ago
use like this
export const getStaticProps = wrapper.getStaticProps((store) => async (req) => { await store.dispatch(getRooms()); });
Thi will work...
export const getServerSideProps = wrapper.getServerSideProps(store => async ({req, res}) => { await store.dispatch(getRooms(req)); })
Hi dear, I'm following your course. When I add this line in my project it throws the error
Server Error TypeError: nextCallback is not a function
This error happened while generating the page. Any console logs will be displayed in the terminal window.