-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Description
Proposal here
Background: The app's logging library supports several severity levels. Among them, Log.warn() immediately flushes to the server via an API call, while Log.hmmm() batches entries locally and sends them only when the buffer fills (150 lines) or a timeout expires. Both ultimately deliver messages to the server - they differ only in timing. During app initialization, React Navigation's navigationRef is briefly unready. Seven navigation helpers check for this state and log a message when they encounter it.
Problem: When the app initializes and the navigation reference is momentarily unready, navigation helpers fire Log.warn() calls that each force an immediate server flush, competing for bandwidth with critical data-fetching operations.
Solution: Downgrade seven Log.warn() calls to Log.hmmm() in navigation helpers that log expected "navigationRef not ready" states. The log messages remain unchanged - the same information reaches the server, just batched rather than flushed individually. This drops startup Log API calls from 18 to 2 with no loss of observability or change to navigation behavior.
Issue Owner
Current Issue Owner: @eh2077Issue Owner
Current Issue Owner: @eh2077Upwork Automation - Do Not Edit
- Upwork Job URL: https://www.upwork.com/jobs/~022034239234242976099
- Upwork Job ID: 2034239234242976099
- Last Price Increase: 2026-03-18
Metadata
Metadata
Labels
Type
Projects
Status