alibaba / alibaba/lowcode-engine
请问在开发插件时,如何全局注入 Provider,如:antd 的 ConfigProvider 或 react-redux 的 Provider
- Dominant language
- TypeScript
- Stars
- 15.9k
- Forks
- 2.7k
- PR merge metrics
- No merged PRs in 30d
Description
项目前提:开发自己项目使用的插件
在开发插件时,使用 antd 做插件的组件内容,我不想通过为每个插件嵌套 ConfigProvider,未能在文档 api 中查找到类似的全局 Provider 注入的 api,应该是只是针对 skeleton 的 Provider
在查看源码时,找到 https://github.com/alibaba/lowcode-engine/blob/main/packages/editor-skeleton/src/layouts/workbench.tsx#L38
期望是不是能够在这里提供一个 全局的(多个 Provider)的注入?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reading packages/editor-skeleton/src/layouts/workbench.tsx around the referenced provider code and trace how plugin components enter the workbench. Determine the intended API for injecting multiple global providers, including the antd and react-redux cases. Done means the proposed provider injection works for plugin components without nesting a provider in each plugin.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100