DrSensor / DrSensor/nusa

`run()` scope

Open
#48 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
4
Forks
0
PR merge metrics
No merged PRs in 30d

Description

```ts
run(() => {
const pid = seInterval(() => {
console.log("print every 1s")
}, 1 * s)
return () => clearInterval(pid)
}, when?: string)
```
Those that are wrapped in `run()` scope will run every time (not just once) current `` is in view and stop (call returned function) when out of view.

Contributor guide

No contributing guide indexed for this repository

Research direction

Locate the implementation or entry points for run() and , then read how view visibility is currently handled. Done means callbacks wrapped in run() execute each time the current render-scope enters view and the returned cleanup function is called when it leaves, with the optional when condition accounted for.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, typescript
Domain
frontend, web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.