From cd433b0e3c1c0c13a30fd0e25982c63813ae1cc1 Mon Sep 17 00:00:00 2001 From: Manuel <30572287+manuel-rw@users.noreply.github.com> Date: Mon, 24 Apr 2023 21:40:20 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A8=20Fix=20runtime=20zustand=20warnin?= =?UTF-8?q?gs=20for=20imports=20(#853)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/config/provider.tsx | 2 +- yarn.lock | 10 +++++----- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 1202031b2..a4a519d0f 100644 --- a/package.json +++ b/package.json @@ -72,7 +72,7 @@ "xml-js": "^1.6.11", "yarn": "^1.22.19", "zod": "^3.21.4", - "zustand": "^4.1.4" + "zustand": "^4.3.7" }, "devDependencies": { "@next/bundle-analyzer": "^12.1.4", diff --git a/src/config/provider.tsx b/src/config/provider.tsx index 3f9a52704..672648fd5 100644 --- a/src/config/provider.tsx +++ b/src/config/provider.tsx @@ -1,5 +1,5 @@ import { createContext, ReactNode, useContext, useEffect, useState } from 'react'; -import shallow from 'zustand/shallow'; +import { shallow } from 'zustand/shallow'; import { useColorTheme } from '../tools/color'; import { ConfigType } from '../types/config'; import { useConfigStore } from './store'; diff --git a/yarn.lock b/yarn.lock index 40f71e19b..728a909a9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5002,7 +5002,7 @@ __metadata: xml-js: ^1.6.11 yarn: ^1.22.19 zod: ^3.21.4 - zustand: ^4.1.4 + zustand: ^4.3.7 languageName: unknown linkType: soft @@ -8943,9 +8943,9 @@ __metadata: languageName: node linkType: hard -"zustand@npm:^4.1.4": - version: 4.3.6 - resolution: "zustand@npm:4.3.6" +"zustand@npm:^4.3.7": + version: 4.3.7 + resolution: "zustand@npm:4.3.7" dependencies: use-sync-external-store: 1.2.0 peerDependencies: @@ -8956,6 +8956,6 @@ __metadata: optional: true react: optional: true - checksum: 4d3cec03526f04ff3de6dc45b6f038c47f091836af9660fbf5f682cae1628221102882df20e4048dfe699a43f67424e5d6afc1116f3838a80eea5dd4f95ddaed + checksum: 355b414ba4830b6106bcb888077c5f90f40ed649e4127e337eff4fb4ea90e88bf5cccf32344711d743cb92a676a0643a6ab3674ddc60ed49f17ea1bc8e3f58e2 languageName: node linkType: hard