P1B: Refactor packages/ui/src/context/dialog.tsx: Function with high complexity (count = 27): init
Open
@inseokk is already working on this.
Since Sep 8, 2026.
- Dominant language
- TypeScript
- Stars
- 0
- Forks
- 126
- PR merge metrics
- No merged PRs in 30d
Description
Uniqueness check
- I have searched open issues and confirmed this file + smell is not already taken.
Full path to the Typescript file
packages/ui/src/context/dialog.tsx
Function(s)/scope targeted
init
Relevant Qlty output
Function with high complexity (count = 27): init
32 function init() {
33 const [stack, setStack] = createSignal<Active[]>([])
34 const timer = { current: undefined as ReturnType<typeof setTimeout> | undefined }
35 const lock = { value: false }
36
37 onCleanup(() => {
[hid 119 additional lines]
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.
Assessment
This issue has not been assessed yet.