From 3907c87ce23cc6ef4a739b5a66ddb553e8723114 Mon Sep 17 00:00:00 2001 From: Evan You Date: Thu, 11 Jan 2024 21:07:41 +0800 Subject: [PATCH] fix(hydration): should not warn on falsy bindings of non-property keys --- .../runtime-core/__tests__/hydration.spec.ts | 5 +++++ packages/runtime-core/src/hydration.ts | 16 ++++++++-------- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/packages/runtime-core/__tests__/hydration.spec.ts b/packages/runtime-core/__tests__/hydration.spec.ts index 17d7b8dbcee..3b2bdbf35c0 100644 --- a/packages/runtime-core/__tests__/hydration.spec.ts +++ b/packages/runtime-core/__tests__/hydration.spec.ts @@ -1516,5 +1516,10 @@ describe('SSR hydration', () => { mountWithHydration(``, () => h('input', { from: {} })) expect(`Hydration attribute mismatch`).not.toHaveBeenWarned() }) + + test('should not warn on falsy bindings of non-property keys', () => { + mountWithHydration(`