fix: mode 模式,guard.show / hide 会频繁的插入 script
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 48/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- typescript
- Domain
- authentication, frontend
Research direction
Start with the linked StackBlitz reproduction and inspect src/App.tsx, focusing on the mode flow that calls guard.show and guard.hide. Repeat the display/hide steps and verify that repeated toggling no longer inserts multiple script elements or causes multiple login-success toasts.
Written by the indexing model from the issue text.
Description
https://stackblitz.com/edit/vitejs-vite-xlut2lrs?file=src%2FApp.tsx
Steps to reproduce the error:
- 点击显示
- 点击隐藏
重复这个步骤,会发现插入多个 script,导致登录成功会提示多个toast
- Dominant language
- TypeScript
- Stars
- 1.4k
- Forks
- 151
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Authing/Guard
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 38/100
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 25/100
-
文档 URL 的描述错误 Openbug
Difficulty 1/5 Under an hour Newbie friendliness 45/100
-
guard.min.css 污染全局样式 Openbug
-
bug
Similar issues
-
blocklist removal
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
MetaMask/eth-phishing-detect#296544 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
pastelsky/bundlephobia#1122 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
category/development priority/P2 scope/file-operations scope/testing type/enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Enatega Customer and Rider app: Add-ons price is not visible to customer after order is placed. Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100