Skip to content

Freeze components inside `data` to avoid them being reactive

Illya Klymov requested to merge xanf-fix-freeze into master

What does this MR do and why?

Related issue #390830 (closed)

Vue.js 3 does not like when components are used as a part of data()

This makes entire suite (not just single tests) blow-up. To avoid this we're marking components with markRaw helper already introduced in our codebase

Screenshots or screen recordings

N/A

How to set up and validate locally

VUE_VERSION=3 yarn jest spec/frontend/groups/components/overview_tabs_spec.js should fail individual tests, not entire suite

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports