{"id":51222367,"url":"https://github.com/tempoxyz/accounts-sdk-duplicate-iframe-repro","last_synced_at":"2026-06-28T08:03:51.294Z","repository":{"id":350104082,"uuid":"1205313558","full_name":"tempoxyz/accounts-sdk-duplicate-iframe-repro","owner":"tempoxyz","description":"Minimal repro: tempoWallet() connector injects duplicate iframes","archived":false,"fork":false,"pushed_at":"2026-04-08T21:47:06.000Z","size":46,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-08T23:28:14.824Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tempoxyz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-08T21:04:30.000Z","updated_at":"2026-04-08T21:47:11.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/tempoxyz/accounts-sdk-duplicate-iframe-repro","commit_stats":null,"previous_names":["tempoxyz/accounts-sdk-duplicate-iframe-repro"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/tempoxyz/accounts-sdk-duplicate-iframe-repro","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tempoxyz%2Faccounts-sdk-duplicate-iframe-repro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tempoxyz%2Faccounts-sdk-duplicate-iframe-repro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tempoxyz%2Faccounts-sdk-duplicate-iframe-repro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tempoxyz%2Faccounts-sdk-duplicate-iframe-repro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tempoxyz","download_url":"https://codeload.github.com/tempoxyz/accounts-sdk-duplicate-iframe-repro/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tempoxyz%2Faccounts-sdk-duplicate-iframe-repro/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34881390,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-28T02:00:05.809Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-28T08:03:50.671Z","updated_at":"2026-06-28T08:03:51.282Z","avatar_url":"https://github.com/tempoxyz.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# accounts SDK — duplicate iframe repro\n\nMinimal reproduction of `tempoWallet()` injecting duplicate `\u003ciframe\u003e` elements into the DOM.\n\n## The bug\n\n`Dialog.iframe()` unconditionally creates a new `\u003cdialog\u003e` + `\u003ciframe\u003e` and appends it to `document.body` on every setup call. The wagmi connector's `provider ??=` guard only protects within a single connector instance — it doesn't prevent multiple connector instances from each creating their own iframe.\n\nThis happens when:\n- **Multiple demo/page components** each create their own `createConfig({ connectors: [tempoWallet()] })`\n- **React StrictMode** double-mounts in dev → 2 iframes on first load\n- **Config is created inside a React component** (re-created every render)\n- **HMR** re-evaluates the module → new connector → new iframe\n\nThis repro simulates the docs site pattern: multiple page components each creating their own wagmi config.\n\n## Repro steps\n\n```bash\nnpm install\nnpm run dev\n```\n\n1. Open `https://localhost:5199` — observe iframe count climbing (StrictMode + re-renders)\n2. Click \"Add another page\" — adds another config → another iframe\n3. Inspect DOM: `document.querySelectorAll('dialog[data-tempo-wallet]').length`\n\n**Note:** We explicitly pass `Dialog.iframe()` to the connector to bypass the SDK's insecure-context check (which falls back to `popup()` on `http://` and would mask the bug).\n\n## Fix\n\nSee [PR #151](https://github.com/tempoxyz/accounts/pull/151) on `tempoxyz/accounts`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftempoxyz%2Faccounts-sdk-duplicate-iframe-repro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftempoxyz%2Faccounts-sdk-duplicate-iframe-repro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftempoxyz%2Faccounts-sdk-duplicate-iframe-repro/lists"}