Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Migrate result variants selector component #1438

Merged
merged 12 commits into from
Apr 8, 2024
Prev Previous commit
Next Next commit
feat: check if object is array & if so use it as a ref instead of rea…
…ctive (to be able to use watch/watchEffect on it)

EMP-3750
annacv committed Mar 26, 2024
commit cdedcde3893f9c41ea3419abfb6b73e5d83bfb48
2 changes: 1 addition & 1 deletion packages/x-components/src/composables/use-hybrid-inject.ts
Original file line number Diff line number Diff line change
@@ -21,7 +21,7 @@ const makeInjectionReactive = <SomeValue>(
) {
const xRefValue = injection.value;

if (xRefValue && typeof xRefValue === 'object') {
if (xRefValue && typeof xRefValue === 'object' && !Array.isArray(xRefValue)) {
return reactive(xRefValue);
} else {
return ref<SomeValue>(xRefValue);