Skip to content

fix: usePluginStoreWatcher should support core store values#754

Merged
oeninghe-dataport merged 3 commits into
nextfrom
fix/654-attributions-do-not-refresh-on-zoom
Jul 3, 2026
Merged

fix: usePluginStoreWatcher should support core store values#754
oeninghe-dataport merged 3 commits into
nextfrom
fix/654-attributions-do-not-refresh-on-zoom

Conversation

@oeninghe-dataport

Copy link
Copy Markdown
Collaborator

Summary

The bug occurs because usePluginStoreWatcher does not support core store values yet.
However, zoom which is watched in snowbox configuration is a core store value.

Instructions for local reproduction and review

See #654

Relevant tickets, issues, et cetera

Fixes #654

@oeninghe-dataport oeninghe-dataport added this to the POLAR@3 milestone Jun 1, 2026
@oeninghe-dataport oeninghe-dataport self-assigned this Jun 1, 2026
@oeninghe-dataport oeninghe-dataport added the bug Something isn't working label Jun 1, 2026
@github-actions

github-actions Bot commented Jun 1, 2026

Copy link
Copy Markdown
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-07-03 12:58 UTC

@oeninghe-dataport oeninghe-dataport force-pushed the fix/654-attributions-do-not-refresh-on-zoom branch from 8910367 to ecfcb7c Compare June 2, 2026 08:51

@dopenguin dopenguin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

As the name of the composable suggests, the intended usage is for plugin values.
The name of the composable has to change or a second has to be added.

Comment thread src/composables/useStoreWatcher.ts
@oeninghe-dataport oeninghe-dataport force-pushed the fix/654-attributions-do-not-refresh-on-zoom branch from ecfcb7c to d357a92 Compare July 3, 2026 08:45
@oeninghe-dataport oeninghe-dataport requested a review from a team July 3, 2026 08:45
@oeninghe-dataport

Copy link
Copy Markdown
Collaborator Author

As the name of the composable suggests, the intended usage is for plugin values. The name of the composable has to change or a second has to be added.

As we use this for StoreReferences that may direct to a core or plugin store value, using a second composable seems quite impractical. Therefore, I renamed this to match the ex-ante intended

@oeninghe-dataport

Copy link
Copy Markdown
Collaborator Author

🏓 @dopenguin

@dopenguin dopenguin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

🚀 @oeninghe-dataport

Note that this only partially solves the issue described in #654.

@oeninghe-dataport oeninghe-dataport merged commit b0c4675 into next Jul 3, 2026
6 checks passed
@oeninghe-dataport oeninghe-dataport deleted the fix/654-attributions-do-not-refresh-on-zoom branch July 3, 2026 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Attributions: Layers with zoom restrictions are not correctly displayed

2 participants