You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For example, the CSS variables that PageHeader sets sometimes get set to things like "undefinedpx" or "NaNpx". They immediately get set to valid values, but it would be better if this didn't happen even briefly.
Rather than initialising metrics as an empty object, then populating it on first call to the util function, and testing the fields on usage to check they've been initialised and using 0 if not, it would be better to initialise it with all the fields set to 0. Then the values can be used without checking, with confidence, and anomalous values should never arise.
The text was updated successfully, but these errors were encountered:
For example, the CSS variables that PageHeader sets sometimes get set to things like "undefinedpx" or "NaNpx". They immediately get set to valid values, but it would be better if this didn't happen even briefly.
Rather than initialising
metrics
as an empty object, then populating it on first call to the util function, and testing the fields on usage to check they've been initialised and using 0 if not, it would be better to initialise it with all the fields set to 0. Then the values can be used without checking, with confidence, and anomalous values should never arise.The text was updated successfully, but these errors were encountered: