dillon1000/react

Commit

[Flight] Warn if this argument is passed to .bind of a Server Reference (#28380)

This won't ever be serialized and is likely just a mistake.

This should be covered by the "use server" compiler since it ensures
that something that accepts a "this" won't be allowed to compile and if
it doesn't accept it, TypeScript should ideally forbid it to be passed.

So maybe this is unnecessary.
Browse files
Changed paths3 files
First-parent comparison
M packages/react-client/src/ReactFlightReplyClient.js ModifiedM packages/react-server-dom-webpack/src/ReactFlightWebpackReferences.js ModifiedM packages/react-server-dom-webpack/src/__tests__/ReactFlightDOMEdge-test.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…