Skip to content

refactor: use iconStore instead of props in GeneralOptions.vue#415

Merged
sebinside merged 2 commits intosebinside:mainfrom
MichaHuhn:refactor/use-iconStore-directly
Feb 4, 2026
Merged

refactor: use iconStore instead of props in GeneralOptions.vue#415
sebinside merged 2 commits intosebinside:mainfrom
MichaHuhn:refactor/use-iconStore-directly

Conversation

@MichaHuhn
Copy link
Copy Markdown
Contributor

@MichaHuhn MichaHuhn commented Jan 22, 2026

Use the iconStore directly instead of using props.
With this approach the currentIcon can be read and updated directly.

A Pinia store already unwraps each ref for you which is a bit unituitive.
That's why we can use the storeToRefs() helper function from Pinia to convert the returned currentIcon into a normal ref and simply use it like any other ref to keep it consistent.

In addition, simplify some return values.

@MichaHuhn MichaHuhn changed the title refactor: use iconStore directly instead of using props refactor: use iconStore instead of props in GeneralOptions.vue Jan 25, 2026
@sebinside sebinside merged commit c58cf33 into sebinside:main Feb 4, 2026
1 check passed
@MichaHuhn MichaHuhn deleted the refactor/use-iconStore-directly branch February 4, 2026 23:40
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.

2 participants