Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix withData.tsx #872

Open
Arashfa0301 opened this issue Feb 21, 2023 · 0 comments
Open

Fix withData.tsx #872

Arashfa0301 opened this issue Feb 21, 2023 · 0 comments
Assignees

Comments

@Arashfa0301
Copy link
Contributor

Per today, if one wishes to make a custom page with independent from the data from admin page, one cannot. The reason being one has to pass the page component through the withDataAndLayout function with in turn does some server stuff in withData that makes it possible for one to have a custom page working as intended.

From debugging we have found that the function that has to be fixed is static async getInitialProps. It maybe has to run on the server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants