Skip to content

[Due for payment 2026-03-30] [$250] Batch non-critical navigation logs during app startup #85639

@mountiny

Description

@mountiny

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 OwnerCurrent Issue Owner: @eh2077
Issue OwnerCurrent Issue Owner: @eh2077
Upwork 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

Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.ExternalAdded to denote the issue can be worked on by a contributorWeeklyKSv2

Type

No type

Projects

Status

LOW

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions