GoogleChromeLabs / GoogleChromeLabs/react-adaptive-hooks

Values like jsHeapSize change over time, whereas useMemoryStatus hook will give a constant value

Open
#19 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
5.2k
Forks
112
PR merge metrics
No merged PRs in 30d

Description

memory info `totalJSHeapSize ` and `usedJSHeapSize ` change over time, whereas `useMemoryStatus` hook return value which was captured during the module load time.
`useInitialMemoryStatus` would have been a better name since this hook returns initial memory status.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.