Skip to content

Commit

Permalink
fix: make arrays reactive with ref in useHybridInject (#1437)
Browse files Browse the repository at this point in the history
  • Loading branch information
CachedaCodes authored Mar 27, 2024
1 parent 8dfd47f commit 75e6fbf
Showing 1 changed file with 1 addition and 1 deletion.
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
Expand Up @@ -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);
Expand Down

0 comments on commit 75e6fbf

Please sign in to comment.