Skip to content
This repository was archived by the owner on Jul 21, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant