1
0
Fork 0
mirror of https://github.com/archtechx/alpine-reactive.git synced 2025-12-12 08:24:03 +00:00

Better check for isReactiveProxy()

This commit is contained in:
Samuel Štancl 2021-05-21 20:52:09 +02:00 committed by GitHub
parent c217094ee1
commit bb1d2b0967
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -49,7 +49,7 @@ export function ref(value) {
} }
export function isReactiveProxy(proxy) { export function isReactiveProxy(proxy) {
return proxy && proxy.__alpine_componentEls !== undefined return proxy && typeof proxy.__alpine_componentEls === 'array'
} }
export function reactive(value, componentEl = null) { export function reactive(value, componentEl = null) {