I've added a new page to the RTK repo that uses GIPP (GIP at page level)
I've added GIP to the _app as well, so now all pages use GIP at _app, and GSP, GSSP and GIP
I've added testcases for this new page
I've added testcases for App.GIP and Page.GIP in the wrapper
This should show that all combinations we test work properly.
Sidenote: It's very important (and this took me quite a while) to properly write the App.GIP if you're using Page.GIP (which you shouldn't). You must import App from next/app, and you must await App.getInitialProps, and merge its data into your return in your own App.getInitialProps. And you must do your dispatches before you do that await.
This should show that all combinations we test work properly.
Sidenote: It's very important (and this took me quite a while) to properly write the App.GIP if you're using Page.GIP (which you shouldn't). You must import
App
fromnext/app
, and you must await App.getInitialProps, and merge its data into your return in your own App.getInitialProps. And you must do your dispatches before you do that await.