Skip to content

Conversation

@bperel
Copy link

@bperel bperel commented Jun 15, 2025

This rule ensures that you always access the value of the ref and not the ref object itself.

Pull request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

What did you change?

Refs are objects that wrap a value. To access the value, you need to use the .value property. When using storeToRefs from Pinia, you get refs for the state properties of a store. This rule ensures that you always access the value of the ref and not the ref object itself.

Issue Number: N/A

Why did you change it?

Other information

@bperel bperel marked this pull request as draft June 16, 2025 09:50
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.

1 participant