@samitouri / QOS-React-2 / commits / 2bfe4b246f

[Flight] Fix style nit from #26623 (#26629)

Maybe this is faster. https://github.com/facebook/react/pull/26623#discussion_r1167053174

Sophie Alpert committed Apr 14, 2023 at 09:49 UTC 2bfe4b246f58d1f8d357f984fba9a8aa1fa79c73
2 files changed +2 -2
packages/react-client/src/ReactFlightClient.js
+1 -1
@@ -565,7 +565,7 @@ export function parseModelString(
565 }
566 case '-': {
567 // $-0 or $-Infinity
568 - if (value[2] === '0') {
568 + if (value === '$-0') {
569 return -0;
570 } else {
571 return -Infinity;
packages/react-server/src/ReactFlightReplyServer.js
+1 -1
@@ -403,7 +403,7 @@ function parseModelString(
403 }
404 case '-': {
405 // $-0 or $-Infinity
406 - if (value[2] === '0') {
406 + if (value === '$-0') {
407 return -0;
408 } else {
409 return -Infinity;