Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: enhance plugins #23

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

ponkans
Copy link

@ponkans ponkans commented May 23, 2022

增强 plugins 机制,原本框架暴露的 hook,不足以完全满足框架运行时各阶段 plugin 的注入。增加 boforeBootstrap、beforeMount、beforeUpdated、boforeUnmount 4 个 hook。

例如:基于新增的 beforeBootstrap hook,实现 reactRetargetEventPlugin,解决 react 17 之前合成事件 magic 不生效的问题。

image

开发者可以将 plugin 推送至 npm 仓库,方便其它开发者直接调用。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant