Maybe this is faster. https://github.com/facebook/react/pull/26623#discussion_r1167053174
This commit is contained in:
parent
ab2385fa38
commit
2bfe4b246f
|
@ -565,7 +565,7 @@ export function parseModelString(
|
|||
}
|
||||
case '-': {
|
||||
// $-0 or $-Infinity
|
||||
if (value[2] === '0') {
|
||||
if (value === '$-0') {
|
||||
return -0;
|
||||
} else {
|
||||
return -Infinity;
|
||||
|
|
|
@ -403,7 +403,7 @@ function parseModelString(
|
|||
}
|
||||
case '-': {
|
||||
// $-0 or $-Infinity
|
||||
if (value[2] === '0') {
|
||||
if (value === '$-0') {
|
||||
return -0;
|
||||
} else {
|
||||
return -Infinity;
|
||||
|
|
Loading…
Reference in New Issue