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 }