We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When using getServerSideProps with addHookData the page loses the usePost info
Context:
getServerSideProps
addHookData
usePost
No response
The text was updated successfully, but these errors were encountered:
When you say "the page loses the usePost info" do you mean you are not able to use usePost hook?
By design you should not be able to access the post data directly from props but only from the hooks.
Sorry, something went wrong.
In the pages router, you need to pass the exact same params both on the server and on the client, see the example here: https://github.com/10up/headstartwp/blob/develop/projects/wp-nextjs/src/pages/%5B...path%5D.tsx#L106
No branches or pull requests
Describe the bug
When using getServerSideProps with addHookData the page loses the usePost info
Steps to Reproduce
Context:
getServerSideProps
(full SSR site)addHookData
with props to manually inject theusePost
result, otherwise, it's removed.Screenshots, screen recording, code snippet
No response
Environment information
No response
WordPress information
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: