Closed jasonbahl closed 3 months ago
This analysis was generated by the Next.js Bundle Analysis action. 🤖
Page | Size (compressed) |
---|---|
global |
250.52 KB (-10 B) |
The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.
Any third party scripts you have added directly to your app using the <script>
tag are not accounted for in this analysis
If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!
closing in favor of: https://github.com/wpengine/faustjs/pull/1939 (the #
in the branch name was causing issues with automated tests)
Description
This fixes a bug where the
WordPressTemplate
component would returnnull
on the server whenisPreview
was null.Related Issue(s):
fixes #1813
Testing
I tested following the steps outlined in #1813 on the reproduction mentioned in the issue.
I also was able to reproduce the issue on acf.wpgraphql.com (codebase here: https://github.com/wp-graphql/acf.wpgraphql.com) and was able to confirm that the issue is resolved for acf.wpgraphql.com with this fix in place.
Screenshots
Reproduction Site from #1813 - Before
With JavaScript disabled, the page is blank
Reproduction Site from #1813 - After
Content is rendered even with JavaScript disabled
acf.wpgraphql.com - Before
With JavaScript disabled, the page is blank
acf.wpgraphql.com - After
Content is rendered even with JavaScript disabled