Skip to content

Conversation

@ltkum
Copy link
Contributor

@ltkum ltkum commented Nov 4, 2025

  • Issue: when changing the state through actions, the URL would not be updated.

  • Cause: when migrating to Pinia, we no longer had a global watch on mutations, instead they are defined by store, and we only checked on the app Readyness store.

  • Fix : (ugly) we subscribe every store that is needed.

  • New Issue: apparently we also broke the legacy parser.

Test link

@github-actions github-actions bot added the bug label Nov 4, 2025
@ltkum ltkum force-pushed the fix-PB-2036-url-sync branch from c606b81 to deec86e Compare November 6, 2025 10:48
@ltkum ltkum requested a review from pakb November 6, 2025 10:49
- Issue: when changing the state through actions, the URL would not be updated.

- Cause: when migrating to Pinia, we no longer had a global watch on mutations, instead they are defined by store, and we only checked on the app Readyness store.

- Fix : (ugly) we subscribe every store that is needed.

- New Issue: apparently we also broke the legacy parser.
@ltkum ltkum force-pushed the fix-PB-2036-url-sync branch from deec86e to ba8f8e1 Compare November 6, 2025 12:59
Copy link
Contributor

@pakb pakb left a comment

Choose a reason for hiding this comment

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

Can you try to make a Pinia plugin out of that?
This way you should be able to subscribe globally to the store, and should be able to access the Router using useRouter() inside the plugin declaration.

Just mind that a plugin will be declared/initiated each time a new store is added, so you might want to add some Singleton logic there

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants