I'm using Nextjs and using kea for state management. It all works great when routing is made in the browser. Although the plugin is tightly coupled with the componentDidMount lifecycle method from React and therefore I'm not able to take advantage of the getInitialProps new lifecycle event made available by Next in order to fetch data before page load.
I made an example in the nextjs repo in order to add an example that would allow this. But some help would be appreciated.
I started an example here. But some help would be appreciated.
I'm using
Nextjs
and using kea for state management. It all works great when routing is made in the browser. Although the plugin is tightly coupled with thecomponentDidMount
lifecycle method fromReact
and therefore I'm not able to take advantage of thegetInitialProps
new lifecycle event made available byNext
in order to fetch data before page load.I made an example in the nextjs repo in order to add an example that would allow this. But some help would be appreciated.
I started an example here. But some help would be appreciated.