Skip to content

fix: usePluginStoreWatcher should support core store values#754

Open
oeninghe-dataport wants to merge 1 commit into
nextfrom
fix/654-attributions-do-not-refresh-on-zoom
Open

fix: usePluginStoreWatcher should support core store values#754
oeninghe-dataport wants to merge 1 commit 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

QR code for preview link

🚀 View preview at
https://Dataport.github.io/polar/pr-preview/pr-754/

Built to branch gh-pages at 2026-06-02 08:53 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@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.


const pluginIsInstalled =
source.plugin && coreStore.getPluginStore(source.plugin)
!source.plugin || coreStore.getPluginStore(source.plugin)

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.

This change seems unrelated to a coreStore value. If it is not, a variable named pluginIsInstalled should not be relevant for the coreStore and a different approach should be used here.

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