dillon1000/react

Commit

DevTools: Add support for useOptimistic Hook (#27982)

## Summary

Add support for `useOptimistic` Hook fixing "Unsupported hook in the
react-debug-tools package: Missing method in Dispatcher: useOptimistic"
when inspecting components using `useOptimistic`

## How did you test this change?

- Added test following the same pattern as for `useDeferredValue`
Browse files
Changed paths3 files
First-parent comparison
M packages/react-debug-tools/src/ReactDebugHooks.js ModifiedM packages/react-debug-tools/src/__tests__/ReactHooksInspectionIntegration-test.js ModifiedM packages/react-devtools-shell/src/app/InspectableElements/CustomHooks.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…