From c99bbcd4adeeb91955d4a2cdd28c09348de23d0b Mon Sep 17 00:00:00 2001 From: Daishi Kato Date: Thu, 7 Apr 2022 23:45:57 +0900 Subject: [PATCH] breaking(core): drop v2 hook compatibility (#597) --- src/react.ts | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/react.ts b/src/react.ts index bf7b6ba6e9..a928c724a8 100644 --- a/src/react.ts +++ b/src/react.ts @@ -158,20 +158,6 @@ function create< Object.assign(useStore, api) - // For backward compatibility (No TS types for this) - useStore[Symbol.iterator] = function () { - console.warn( - '[useStore, api] = create() is deprecated and will be removed in v4' - ) - const items = [useStore, api] - return { - next() { - const done = items.length <= 0 - return { value: items.shift(), done } - }, - } - } - return useStore }