Skip to content

Fix: Vue warnings#34

Merged
JammingBen merged 6 commits into
mainfrom
fix/vuewarnings
Jan 31, 2025
Merged

Fix: Vue warnings#34
JammingBen merged 6 commits into
mainfrom
fix/vuewarnings

Conversation

@JammingBen

Copy link
Copy Markdown
Member

See commits for details and explanations on the changes. None of them should have any impact on functionality.

This fixes a warning because an `Authorization` header can't be wildcarded (see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Headers#sect). This only affects our dev docker setup.
Exported members of the `setup()` function should not lead with any special character because those are reserved for Vue internal stuff. That also means that pinia stores must not be spread directly into a `setup()` return because they have such variable names.
Passing extraneous props to multi root components should be prevented because they get lost anyways.
Artificial route params should not be included in a `router.push()` because they will be discarded anyways (see https://github.com/vuejs/router/blob/main/packages/router/CHANGELOG.md#414-2022-08-22). So I guess this code never really worked in the recent past.
The `LoadingSpinner` component should be a reactive object due to performance reasons, hence marking it as raw (=non-reactive).
@JammingBen JammingBen self-assigned this Jan 30, 2025
@JammingBen JammingBen requested a review from kulmann January 30, 2025 14:30

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

Beautiful 🚀

@JammingBen JammingBen merged commit 37fa966 into main Jan 31, 2025
@JammingBen JammingBen deleted the fix/vuewarnings branch January 31, 2025 08:38
@kulmann kulmann changed the title fix: vue warnings Fix: Vue warnings Mar 17, 2025
@kulmann kulmann added the Type:Maintenance E.g. technical debt, packaging, etc. label Mar 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type:Maintenance E.g. technical debt, packaging, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants