Explorar o código

ignore objects marked as raw for interceptors

Caleb Porzio hai 1 ano
pai
achega
815fae3db5
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      packages/alpinejs/src/interceptor.js

+ 1 - 0
packages/alpinejs/src/interceptor.js

@@ -8,6 +8,7 @@ export function initInterceptors(data) {
         Object.entries(Object.getOwnPropertyDescriptors(obj)).forEach(([key, { value, enumerable }]) => {
             // Skip getters.
             if (enumerable === false || value === undefined) return
+            if (typeof value === 'object' && value !== null && value.__v_skip) return
 
             let path = basePath === '' ? key : `${basePath}.${key}`