-
The useEffect hooks have got lots of issues with missing dependencies.
I expect most of these are used for fetching server-side data, so this probably would be resolved by refactoring to react-quer…
-
-
## Describe the bug
Very confused what happened here. Every single example you've provisioned in your `README.md` does not work for me. This also gives very obtuse errors that only a maintainer wou…
-
Fleet's policy editor is its largest and most complex UI. In its current state, it is incredibly difficult to maintain, has led to numerous SDH's related to edge cases with package upgrades, variables…
-
### Description
I'm getting an `'Invalid hook call. Hooks can only be called inside of the body of a function component'` error when I try to use React Hooks with react-360. I'm building a 360 app …
-
React 官网介绍了 Hook 的这样一个限制:
> **不要在循环,条件或嵌套函数中调用 Hook**, 确保总是在你的 React 函数的最顶层以及任何 return 之前调用他们。遵守这条规则,你就能确保 Hook 在每一次渲染中都按照同样的顺序被调用。这让 React 能够在多次的 `useState` 和 `useEffect` 调用之间保持 hook 状态的正确。(如果你对此感…
-
前两天开代码评审,因为是一个小项目,在其中用到了hooks。有个同事看到了一个事件处理里有两个setState。就提出来了会有性能问题。当时我觉得是没有这个问题的,[会有批处理](https://github.com/xiaohesong/TIL/blob/master/front-end/react/overreact/react%E4%BD%9C%E4%B8%BAui%E8%BF%90%E8%…
-
This is related to https://github.com/facebook/react/issues/14092, https://github.com/facebook/react/issues/14066, https://github.com/reactjs/rfcs/issues/83, and some other issues.
The problem is t…
-
Sorry for removing issue template. Since the React 16.8 is out we can start to work on hooks support in enzyme now. Previously I tried to open PR in #2008 to help with this but found out that there ar…
-
**Describe what scenario you think is uncovered by the existing examples/articles**
I want to use other hook in class hook.
**Describe why existing examples/articles do not cover this case**
I th…
jeiea updated
6 months ago