Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add robust system to determine when a pane is being displayed in the most recent place #2217

Open
alexvanyo opened this issue Nov 16, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@alexvanyo
Copy link
Owner

No description provided.

@alexvanyo alexvanyo self-assigned this Nov 16, 2024
@alexvanyo alexvanyo added the enhancement New feature or request label Nov 16, 2024
@alexvanyo
Copy link
Owner Author

Extremely rough idea:

Remember a history mapping of each pane id to the nested pane hierarchy it most recently appeared in.

When computing a pane transform, update the map with the updated pane hierarchy, leaving unused panes untouched.

When deciding to render a pane, check if its location in the pane transform hierarchy matches the map's entry.

Since this is hierarchical there probably would need to be some sort of CompositionLocal that either filters the map, or provides the breadcrumb trail of pane ids to query the map for.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant