issues
search
V4Fire
/
Client
V4Fire client core library
MIT License
23
stars
14
forks
source link
Улучшить описание декоратора hook
#1304
Open
shining-mind
opened
3 months ago
shining-mind
commented
3 months ago
Сейчас не очевидно, что методы
@hook('*ed')
откладывают вызов коллбэка для runHook, то есть откладывают смену состояния компонента фактически
Стоит больше информации из README в сжатом виде добавить к описанию декоратора:
https://github.com/V4Fire/Client/wiki/Жизненный-цикл-компонента.-Декораторы-@hook-и-@wait#порядок-выполнения-хука
https://github.com/V4Fire/Client/tree/v4/src/core/component/decorators/hook
Обновить README, что activated и deactivated хуки, тоже могут быть асинхронными
@hook('*ed')
откладывают вызов коллбэка для runHook, то есть откладывают смену состояния компонента фактически