Skip to content

Commit 23e7535

Browse files
committed
Add comment on priority min
1 parent 9e5c334 commit 23e7535

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

dash/_hooks.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ def add_hook(
7373

7474
p = priority or 0
7575
if not priority and len(hks):
76+
# Take the minimum value and remove 1 to keep the order.
7677
priority_min = min(h.priority for h in hks)
7778
p = priority_min - 1
7879

0 commit comments

Comments
 (0)