8000 fix(tiles): unload cached tiles on finalize and rename Tile2DHeader by ibgreen · Pull Request #4406 · visgl/loaders.gl · GitHub
[go: up one dir, main page]

Skip to content

fix(tiles): unload cached tiles on finalize and rename Tile2DHeader - #4406

Open
ibgreen wants to merge 1 commit into
masterfrom
codex/tileset2d-finalize-unload
Open

ibgreen wants to merge 1 commit into
masterfrom
codex/tileset2d-finalize-unload

Conversation

@ibgreen
@ibgreen ibgreen commented Nov 5, 2026 •
Copy link
Copy Markdown
Collaborator

Tileset2D.finalize() previously cleared cached tiles without notifying unload handlers. It now emits unload notifications once for each cached entry, aborts pending requests, and reports late results through onTileDiscard.

Rename the public SharedTile2DHeader class to Tile2DHeader in both tiles entry points. Update the deck-layers consumers and API documentation. Consumers should update imports to the new name.

Validation: the Chromium tileset lifecycle suite passed all 11 tests, including the new finalize and discard regression.


Note

Low Risk
Low risk lifecycle fix and symbol rename with updated unit tests and documentation.

Overview
Renames SharedTile2DHeader to Tile2DHeader across the @loaders.gl/tiles public exports, deck-layer consumers, and API documentation.

Updates Tileset2D.finalize() to notify listeners and callers via _handleTileUnload for each cached tile during teardown, ensuring unload callbacks fire consistently when finalizing.

Reviewed by Cursor Bugbot for commit 9df9628. Bugbot is set up for automated code reviews on this repo. Configure here.

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-11-05T14:09:22.935473Z
We couldn’t complete this review. Comment @codex review to try again.
9df9628 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

This branch has not been deployed

No deployments
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.

1 participant

0