Skip to content

Commit ee1ac43

Browse files
committed
refactor: rename checkPendingComputeds to checkDirty
1 parent 6cefbc4 commit ee1ac43

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/system.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ export function createReactiveSystem({
250250
* @returns `true` if the subscriber is marked as Dirty; otherwise `false`.
251251
*/
252252
updateDirtyFlag(sub: Subscriber, flags: SubscriberFlags): boolean {
253-
if (checkPendingComputeds(sub.deps!)) {
253+
if (checkDirty(sub.deps!)) {
254254
sub.flags = flags | SubscriberFlags.Dirty;
255255
return true;
256256
} else {
@@ -277,7 +277,7 @@ export function createReactiveSystem({
277277
}
278278
}
279279
} else if (flags & SubscriberFlags.PendingComputed) {
280-
if (checkPendingComputeds(computed.deps!)) {
280+
if (checkDirty(computed.deps!)) {
281281
if (updateComputed(computed)) {
282282
const subs = computed.subs;
283283
if (subs !== undefined) {
@@ -404,7 +404,7 @@ export function createReactiveSystem({
404404
* @param link - The starting link representing a sequence of pending computeds.
405405
* @returns `true` if a computed was updated, otherwise `false`.
406406
*/
407-
function checkPendingComputeds(link: Link): boolean {
407+
function checkDirty(link: Link): boolean {
408408
let stack = 0;
409409
let dirty: boolean;
410410

0 commit comments

Comments
 (0)