dillon1000/react

Commit

Fix Flow types of useEffectEvent (#26468)

## Summary

Just copied the types over from the internal types. Type error was
hidden by overly broad FlowFixMe. With `$FlowFixMe[not-a-function]` we
would've seen the actual issue:
```
Cannot return `dispatcher.useEffectEvent(...)` because  `T` [1] is incompatible with  undefined [2].Flow(incompatible-return)
```

## How did you test this change?

- [x] yarn flow dom-node
- [x] CI
Browse files
Changed paths2 files
First-parent comparison
M packages/react-reconciler/src/ReactInternalTypes.js ModifiedM packages/react/src/ReactHooks.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…