feat: Make react hook and widget MiniKit compatible#173
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6e47735f63
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ae72ab6b0a
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| "react": "^18.3.1", | ||
| "react-dom": "^18.3.1" | ||
| "react-dom": "^18.3.1", | ||
| "viem": "^2.47.2" |
There was a problem hiding this comment.
i needed this to make minikit work :/
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c7595ed4ac
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| return () => { | ||
| cancelled = true; | ||
| }; | ||
| }, [flow.isInWorldApp, isHostVerifying, flow.result, handleVerify]); |
There was a problem hiding this comment.
Prevent duplicate handleVerify calls in World App mode
In World App mode this effect re-runs whenever the handleVerify prop gets a new function identity, so a parent re-render during isHostVerifying can invoke host verification multiple times for the same flow.result. Because the cancelled flag only suppresses setHostVerifyResult and does not cancel the already-started promise, duplicate backend side effects (e.g., repeated verification submissions) are still triggered; this is especially likely when integrators pass inline callbacks as shown in the widget usage examples.
Useful? React with 👍 / 👎.
Seamless DevEx to migrate from Minikit to IDKit, plug and play the widget or hook:
Hook usage:
Widget usage:
ScreenRecording_03-13-2026.11-32-24_1.MP4