Skip to content

refactor: remove usage of this._uid in Vue components#8593

Merged
SebastianKrupinski merged 1 commit into
mainfrom
refactor-uid
Jul 16, 2026
Merged

refactor: remove usage of this._uid in Vue components#8593
SebastianKrupinski merged 1 commit into
mainfrom
refactor-uid

Conversation

@odzhychko

@odzhychko odzhychko commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Resolves the browser warning [Vue warn]: Property "_uid" was accessed during render but is not defined on instance. None of the changed code caused a known user-facing issue.

this._uid was an internal API and is undefined since Vue 3. The recommended way to get unique IDs is useId().


In some places, I encountered usage of this._uid in some suspicious code that might hint at something forgotten during previous refactoring and maybe a bug. I don't want to look into the details there for now, so I left XXX comments.

@odzhychko
odzhychko force-pushed the refactor-uid branch 2 times, most recently from 5246cb2 to 394eb26 Compare July 13, 2026 11:35
@codecov

codecov Bot commented Jul 13, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@SebastianKrupinski

Copy link
Copy Markdown
Contributor

Hey,

"this._uid" is dead vue 2 code, and should be removed

Resolves the browser warning `[Vue warn]: Property "_uid" was accessed during render but is not defined on instance.`
None of the changed code caused a known user-facing issue.

`this._uid` was an internal API and is `undefined` since Vue 3.
The recommended way to get unique IDs is `useId()`.

Signed-off-by: Oleksandr Dzhychko <hey@oleks.dev>
@odzhychko

Copy link
Copy Markdown
Contributor Author

Hey,

"this._uid" is dead vue 2 code, and should be removed

I removed the non-required usages of this._uid and used useId() where we still needed it a unique id.

@SebastianKrupinski
SebastianKrupinski merged commit 9610258 into main Jul 16, 2026
40 checks passed
@SebastianKrupinski
SebastianKrupinski deleted the refactor-uid branch July 16, 2026 12:05
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