You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: exclude Options API components with setup() from the proxy mock workaround
* test: add failing global mocks scenario
* fix: exclude OAPI components with setup() from the proxy mock workaround
* refactor: wrap <script setup> assertion into isScriptSetup util and use it
- drop hasSetupState check, if a component is <script setup> it always has setup state
- do note that isScriptSetup and hasSetupState check for different things. I tried to replaced hasSetupScript with isScriptSetup but some specs around expose started to fail so we are required to keep it for now.
// due to https://github.com/vuejs/core/commit/f73925d76a76ee259749b8b48cb68895f539a00f#diff-ea4d1ddabb7e22e17e80ada458eef70679af4005df2a1a6b73418fec897603ceR404
484
484
// introduced in Vue v3.2.45
485
-
if(hasSetupState(this)){
485
+
// Also ensures not to include option API components in this block
486
+
// since they can also have setup state but need to be patched using
0 commit comments