You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/02/25 01:44:55 UTC

[GitHub] [pulsar-site] urfreespace commented on a change in pull request #6: config and style updates

urfreespace commented on a change in pull request #6:
URL: https://github.com/apache/pulsar-site/pull/6#discussion_r814412578



##########
File path: site2/website-next/src/pages/index.js
##########
@@ -129,7 +130,13 @@ export default function Home() {
   ];
   useEffect((d) => {
     startWaves();
-
+    var winW = window.outerWidth;

Review comment:
       we can't use `window` directly because the buiding is based on `SSR`, you can have a test by `npm run build`, maybe this `https://docusaurus.io/docs/docusaurus-core#useIsBrowser` can help @Paul-TT 




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org