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

implement WorldApp global var check #39

Merged
merged 3 commits into from
May 30, 2024
Merged

implement WorldApp global var check #39

merged 3 commits into from
May 30, 2024

Conversation

igorosip0v
Copy link
Contributor

After approval we need to adjust specs

@igorosip0v igorosip0v self-assigned this May 30, 2024
Copy link

vercel bot commented May 30, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
minikit-js-with-next ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 30, 2024 1:20pm

@@ -18,6 +24,8 @@ export const ClientContent = () => {
<hr />

<div className="grid gap-y-8">
<VersionsNoSSR />
Copy link
Contributor Author

@igorosip0v igorosip0v May 30, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@andy-t-wang Made it dynamic import because in the demo we are using window.WorldApp inside the JSX markup, and nextjs still trying to hydrate this component end it cause hydration error, text inside <pre*>window.WorldApp</pre*> is not matches between server and client because window is not exist on server

MiniKitInstallErrorMessage,
} from "@worldcoin/minikit-js";

export const Versions = () => {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@andy-t-wang

Result

Desktop:
image

From the app:

image

image

@andy-t-wang andy-t-wang merged commit 694a847 into main May 30, 2024
4 checks passed
@andy-t-wang andy-t-wang deleted the versions-verify branch May 30, 2024 13:22
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

Successfully merging this pull request may close these issues.

2 participants