TuyaOS
Hooks 的协作图:

Hooks are undefined by default, define them to a function if you need them.