Skip to content

[DevTools Bug]: Negative infinity is serialized and shown as Infinity  #32552

@mart3323

Description

@mart3323

Website or app

https://547s6w.csb.app/

Repro steps

  1. Inspect the Example component (h1 element)
  2. Look at the hook values reported by the devtools
    Expected: The first hook, with a value of -Infinity, should be shown as minus infinity
    Actual: Both infinities render as just Infinity

Image

Note: "Store as global variable" will capture the correct value

Image

Reproduced using Opera \w devtools 6.1.1 from revision 44c3d3d
Codesandbox: https://codesandbox.io/p/sandbox/beautiful-lake-547s6w

How often does this bug happen?

Every time

DevTools package (automated)

No response

DevTools version (automated)

No response

Error message (automated)

No response

Error call stack (automated)


Error component stack (automated)


GitHub query string (automated)


Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions