Skip to content

Commit

Permalink
add comment regarding testing for module id
Browse files Browse the repository at this point in the history
  • Loading branch information
zoeyTM committed Dec 15, 2024
1 parent dd39bee commit cf758da
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/core/src/internal/batcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ export class Batcher {
const dependencies = batchState.adjacencyList.getDependenciesFor(futureId);

return [...dependencies].every((depId) => {
// We distinguish between module and future ids here, as the future's always have `#` and the modules don't.
if (/#/.test(depId)) {
return batchState.visitState[depId] === VisitStatus.VISITED;
}
Expand Down

0 comments on commit cf758da

Please sign in to comment.