mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 20:14:49 +00:00
fix: prevent consts from triggering after leaving effect context
This commit is contained in:
@@ -83,10 +83,12 @@ export abstract class Watchable<Raw, Mapped = Raw> {
|
||||
const constRetry = this.effects.constRetry
|
||||
const cleanup = this.onConstRegistered(value)
|
||||
gen.next().then(
|
||||
() => {
|
||||
(a) => {
|
||||
abort.abort()
|
||||
cleanup?.()
|
||||
constRetry()
|
||||
if (!a.done) {
|
||||
constRetry()
|
||||
}
|
||||
},
|
||||
() => {
|
||||
abort.abort()
|
||||
|
||||
Reference in New Issue
Block a user