react/packages/react-debug-tools/src
Ruslan Lesiutin 5b51a2b9e2
fix[DevTools]: support useResourceEffect (#32088)
Since we've started experimenting with it, I've started seeing a spike
in errors:
```
Unsupported hook in the react-debug-tools package: Missing method in Dispatcher: useResourceEffect
```

Adding missing hook to the `Dispatcher` that is proxied by React
DevTools.

I can't really add an example that will use it to our RDT testing shell,
because it uses experimental builds of `react`, which don't have this
hook. I've tested it manually by rebuilding artifacts with
`enableUseResourceEffectHook` flag enabled.

![Screenshot 2025-01-16 at 15 20
00](https://github.com/user-attachments/assets/a0d63fd6-1f17-4710-a2b2-82d484b8987f)
2025-01-16 15:42:53 +00:00
..
__tests__ [assert helpers] not dom or reconciler (#31862) 2024-12-20 12:41:13 -05:00
ReactDebugHooks.js fix[DevTools]: support useResourceEffect (#32088) 2025-01-16 15:42:53 +00:00
ReactDebugTools.js [Codemod] Update copyright header to Meta (#25315) 2022-10-18 11:19:24 -04:00