expo / expo/browser-polyfill

too many console.warn() messages from performance.js

Open
#40 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
69
Forks
26
PR merge metrics
No merged PRs in 30d

Description

It looks like the `performance.js` polyfill has its functions called often, and adb can't handle all the `console.warn()` statements.

Conditions:

- running on connected android device via adb
- RN on device settings: `JS Dev Mode` checked
- using expo-three & expo-gl

inspect the adb logs via: `adb logcat *:S ReactNative:V ReactNativeJS:V`

A `console.warn()` is issued for each call to `window.mark`, `.measure`, `.clearMarks`, and `.clearMeasures` once every 2ms.
Although disabling YellowBox messages does hide them, adb still gets choked up and the app soon crashes.

Full disclosure: I'm running from WSL2 with adb executing on the W side and rn-cli on the L side. (please don't judge)

Could you do something other than a `console`?
thanks

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.