dillon1000/react

Commit

Fix false "unknown property" warnings for events in SSR (#10272)

* Reset modules between importing client and server modules in the test

Client and server renderers still share some modules, including injections.
This means they have shared state in this test, potentially missing issues that would occur in real world.

After this change, the client and server modules are completely isolated in the test.
This makes the tests fail due to https://github.com/facebook/react/issues/10265 (a real issue that was missed).

* Don't validate events if no plugins are injected
Browse files
Changed paths2 files
First-parent comparison
M src/renderers/dom/shared/__tests__/ReactDOMServerIntegration-test.js ModifiedM src/renderers/dom/shared/hooks/ReactDOMUnknownPropertyHook.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…