Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

fix: mode 模式,guard.show / hide 会频繁的插入 script

Open
#328 1 comment 0 reactions 0 assignees View on GitHub

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

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

bug

https://stackblitz.com/edit/vitejs-vite-xlut2lrs?file=src%2FApp.tsx

Steps to reproduce the error:
  1. 点击显示
  2. 点击隐藏

重复这个步骤,会发现插入多个 script,导致登录成功会提示多个toast

Dominant language
TypeScript
Stars
1.4k
Forks
151
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Authing/Guard

All issues in Authing/Guard

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.