-
### Versions
- vite-plugin-federation: v1.1.9
- vite: v3.0.3
- react: 18.2.0
### Reproduction
如果在remote提供的模块中,使用例如useEffect这样的hook,在host项目中使用该模块提供的组件的时候,直接会一个V.current.useEffect未定义的错误。
…
-
# add to cart component
```
const textProxy = () => {
return new Promise((resolve, reject) => {
console.log("w")
fetch("MY_APP_URL", {
method: 'POST',
redirect: 'manual'…
-
It is not super straight forward to get the beforeMount call to cooperate with yaml parsing and many people using our code editor are using it for parsing/editing yaml files.
it might be wise to ad…
-
Here is my code for reference:
const vantaRef = useRef(null);
useEffect(() => {
const vantaEffect = NET({
el: vantaRef.current,
THREE: THREE,
mouseControls: true,
…
-
_Leveraged by @kravets-levko in https://github.com/getredash/redash/pull/5038#discussion_r459330027_
In several places along the app we have State updates after Promises that cause a warning to be …
-
## What happens?
父应用切换路由后再切回子应用对应的路由,渲染空白
## How To Reproduce
父子均为React项目,父应用普通项目,子应用umi4(子应用会再加载一个孙子应用,但需要一些用户做一些操作。),都是BrowserRouter,使用loadMicroApp方式加载
```
export const DataFinder = () =>…
-
Not much of a feature request, just want to kick of a discussion 🙃
Since the introduction of `useSyncExternalStore`, there's a dedicated way to subscribe to browser APIs in react over useState/useE…
-
## 优点
- 更容易复用代码,复用状态逻辑,不必陷入嵌套地狱。
- 代码量更少,不需要像React.Component那样写太多的模板代码
https://zh-hans.reactjs.org/docs/hooks-intro.html#motivation
## 缺点
- 响应式的useEffect,对比componentDidmount和componentDidU…
-
There has a problem that is to set some optional field. I was debug by using the browser's develop tool , there is no any option field in the modified schema send to BE. By reading the source code , I…
-
目录项太多的时候,显示不完