Preview isn't working for frontpage
Open
Nobody has claimed this yet.
needs: reproduction
- Dominant language
- TypeScript
- Stars
- 1.6k
- Forks
- 155
- Avg merge
- 1d 18h
- Merged PRs (30d)
- 20
Description
Description
When I try to reach the frontpage preview, I got my default page template, without data in props.
Other page and single works fine.
Steps to reproduce
- Go to your WordPress frontpage edition
- Click on preview link
Additional context
Result with console.log of preview.tsx props:
Expected result:
@faustwp/core Version
3.0.1
@faustwp/cli Version
3.0.1
FaustWP Plugin Version
1.3.1
WordPress Version
6.5.4
Additional environment details
- graphql: ^16.6.0
- PHP Version: 8.2
- Hosting: local and One.com
Please confirm that you have searched existing issues in the repo.
- Yes
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue from the WordPress frontpage preview link and inspect the props logged in preview.tsx. Compare the frontpage behavior with the working other-page and single previews. Done means the frontpage preview uses its page data instead of rendering the default template without props.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- graphql, nextjs, react, typescript, wordpress
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100