Skip to content

Commit c00e639

Browse files
committed
refactor: remove comment in trigger
1 parent 9daa5c3 commit c00e639

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

src/index.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -210,11 +210,6 @@ export function effectScope(fn: () => void): () => void {
210210
}
211211

212212
export function trigger(fn: () => void) {
213-
// RecursedCheck marks this sub as mid-run (like an executing effect), so
214-
// writes inside fn to already-read deps take the recursed-write path in
215-
// propagate/shallowPropagate instead of notify-queueing this non-effect
216-
// node, which would crash in run(). Batching defers those writes' flush
217-
// so fn's reads and writes settle as one atomic change set.
218213
const sub: ReactiveNode = {
219214
deps: undefined,
220215
depsTail: undefined,

0 commit comments

Comments
 (0)