Skip to content

Commit

Permalink
ignore objects marked as raw for interceptors
Browse files Browse the repository at this point in the history
  • Loading branch information
calebporzio committed Mar 4, 2024
1 parent 2dacee0 commit 815fae3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/alpinejs/src/interceptor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`

Expand Down

0 comments on commit 815fae3

Please sign in to comment.