-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Description
From _hooks.py we see that hook decorators, e.g. @hooks.layout, are actually just wrappers around self.add_hook. Looking at self.add_hook and how it handles input parameter priority, how is the value given to priority passed down to the hook?
It is only used in the check if not priority, which fails if a non-zero value is given and is otherwise not used. The value given to _Hook, is priority=p, and p=0 is set.
Is this a bug or am I misunderstanding how hooks are later used/called?
See: https://github.com/plotly/dash/blob/v3.0.0rc1/dash/_hooks.py#L58-L81
Metadata
Metadata
Assignees
Labels
No labels