feat<Compiler>: consider that the dispatch function from `useReducer` is non-reactive (#29705)
Summary The dispatch function from useReducer is stable, so it is also non-reactive. the related PR: #29665 the related comment: #29674 (comment) I am not sure if the location of the new test file is appropriate😅. How did you test this change? Added the specific test compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/useReducer-returned-dispatcher-is-non-reactive.expect.md.
X
XiaoPi committed
704aeed022f4277cd5604bf6d76199a6cfe4707f
Parent: 3730b40
Committed by GitHub <[email protected]>
on 6/5/2024, 11:51:09 PM