Aidos Omurzakov
Всем привет
кто нибудь подключал redux в next.js приложении ?
если да подскажите пожалуйста где стоит диспатчить события из редакса getStataicProps or getServerssideProps
Согласно доке getStataicProps срабатывает на момент билда , а getServersideProps на каждый запрос (не совсем понял , в каком плане подразумевается на каждый запрос)
Согласно доке redux
When using Redux with server rendering, we must also send the state of our app along in our response, so the client can use it as the initial state.Otherwise, the markup generated on the client won't match the server markup, and the client would have to load the data again.
значит по логике actions мы должны диспатчить в getServersideProps ?
getInitialProps?