Skip to content

Bugfix: 349-2 console err - #353

Merged
acneville merged 3 commits into
mainfrom
bugfix/349-2-console-err
Sep 29, 2026
Merged

acneville merged 3 commits into
mainfrom
bugfix/349-2-console-err

Conversation

@acneville

Copy link
Copy Markdown
Contributor

Removing the "Failed to load tile" console errors, which are caused by race conditions. Tile renders were being kicked off before the proper filters had the chance to apply (fetched from Firebase) or when a stale filter was still applied (the very first centroid you click on, then hit Home).

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🔵 Needs a closer look

Three moderate issues remain around stale visibility updates, initial control state, and fallback timing.

Review effort: Lite
Findings: None

What changed in this PR

This pull request reduces premature ArcGIS tile-load errors during filter and map-scale initialization.

Changes:

  • Initializes centroids with a 1=0 filter.
  • Adds an unfiltered fallback when filter loading fails.
  • Defers visibility updates until map scale settles.
File Summary
src/​mapLayers.ts Adds the initial no-match centroid filter.
src/​components/​contexts/​FilterProvider.tsx Adds filter-error fallback behavior; layer readiness may prevent the fallback from being applied.
src/​components/​CentroidToggle.tsx Defers scale-based visibility changes; remaining effect dependencies and initial-state display need correction.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@acneville
acneville requested a review from stdavis September 29, 2026 22:16
@acneville
acneville merged commit 4306696 into main Sep 29, 2026
9 of 10 checks passed
@acneville
acneville deleted the bugfix/349-2-console-err branch September 29, 2026 22:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants