Open mariusandra opened 5 years ago
Hey @mariusandra
Sorry for the late response, I've been busy with work. I will definitely try to take a look at this. I've been looking at making the execution of async saga inside the getInitialProps but without success. Although i've successfully created a hoc for the App component making it possible to use kea inside _app.js and pages components getInitialProps.
I should be able to take a look at this next week using the rc release.
P.S: adding the hooks capabilities is really dope.
Cheers
Hey @mariusandra ,
I've been very busy with work lately, therefore I didn't had a chance to look at the latest RC release and making it compatible with nextjs. Have you got any chance to look into this on your side?
Cheers
Hi, I think I got Kea (version 2.0.0-beta.7) working rather well with next.js
I wrote a guide about it on the new and yet unreleased docs page: https://kea-docs.netlify.app/docs/installation/nextjs
Hi @etiennecl
I upgraded to the latest kea beta (.32) and configured the next.js app to more or less work.
The only issues still:
increment
code it looks weird, but I guess in a real app refreshing the data is not a bad thing and/or could be avoided with some simple conditionalsLet me know if this is already something you can work with :)