Skip to content

Commit

Permalink
chore: revert
Browse files Browse the repository at this point in the history
  • Loading branch information
octoper committed Dec 28, 2024
1 parent 0e1105e commit d939603
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/pinia/src/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,10 @@ export function skipHydrate<T = any>(obj: T): T {
* @returns true if `obj` should be hydrated
*/
export function shouldHydrate(obj: any) {
return !isPlainObject(obj) || !obj.hasOwnProperty(skipHydrateSymbol)
return (
!isPlainObject(obj) ||
!Object.prototype.hasOwnProperty.call(obj, skipHydrateSymbol)
)
}

const { assign } = Object
Expand Down

0 comments on commit d939603

Please sign in to comment.