feat: Make react hook and widge MiniKit compatible#173
feat: Make react hook and widge MiniKit compatible#173Takaros999 wants to merge 1 commit intomainfrom
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".
| if (isSuccess) { | ||
| if (flow.isInWorldApp) { | ||
| onOpenChange(false); | ||
| } else if (autoClose) { |
There was a problem hiding this comment.
Close World App widget on terminal errors
In World App mode this component later returns null, so there is no error/retry UI, but this auto-close effect only handles isSuccess. When verification fails or is cancelled (flow.isError or host verification rejection), onOpenChange(false) is never called and open can remain stuck at true, which prevents callers that reopen with setOpen(true) from starting a new flow. This makes failed World App verifications non-recoverable unless integrators add custom close logic in onError.
Useful? React with 👍 / 👎.
Seamless DevEx to migrate from Minikit to IDKit, plug and play the widget or hook:
Hook usage:
Widget usage: