From 65b4f6be5a6a692e91c11a454244f46dbdffd04a Mon Sep 17 00:00:00 2001 From: Jovi De Croock Date: Sat, 30 Nov 2024 07:47:55 +0100 Subject: [PATCH] Test whether reducing bits leads to memory improvements (#4586) --- src/constants.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/constants.js b/src/constants.js index 06521888f9..197783b081 100644 --- a/src/constants.js +++ b/src/constants.js @@ -3,9 +3,9 @@ export const MODE_HYDRATE = 1 << 5; /** Signifies this VNode suspended on the previous render */ export const MODE_SUSPENDED = 1 << 7; /** Indicates that this node needs to be inserted while patching children */ -export const INSERT_VNODE = 1 << 16; +export const INSERT_VNODE = 1 << 2; /** Indicates a VNode has been matched with another VNode in the diff */ -export const MATCHED = 1 << 17; +export const MATCHED = 1 << 1; /** Reset all mode flags */ export const RESET_MODE = ~(MODE_HYDRATE | MODE_SUSPENDED);