[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] branch master updated: missing key subscription
From: |
gnunet |
Subject: |
[taler-wallet-core] branch master updated: missing key subscription |
Date: |
Wed, 30 Aug 2023 16:53:01 +0200 |
This is an automated email from the git hooks/post-receive script.
sebasjm pushed a commit to branch master
in repository wallet-core.
The following commit(s) were added to refs/heads/master by this push:
new 84d4e68ab missing key subscription
84d4e68ab is described below
commit 84d4e68ab70c26ffcdccb5d62a507f9acf244fa3
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Wed Aug 30 10:17:23 2023 -0300
missing key subscription
---
packages/web-util/src/hooks/useLocalStorage.ts | 2 +-
packages/web-util/src/hooks/useMemoryStorage.ts | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/packages/web-util/src/hooks/useLocalStorage.ts
b/packages/web-util/src/hooks/useLocalStorage.ts
index fae5537a4..b460144a6 100644
--- a/packages/web-util/src/hooks/useLocalStorage.ts
+++ b/packages/web-util/src/hooks/useLocalStorage.ts
@@ -106,7 +106,7 @@ export function useLocalStorage<Type = string>(
const newValue = storage.get(key.id);
setStoredValue(convert(newValue));
});
- }, []);
+ }, [key.id]);
const setValue = (value?: Type): void => {
if (value === undefined) {
diff --git a/packages/web-util/src/hooks/useMemoryStorage.ts
b/packages/web-util/src/hooks/useMemoryStorage.ts
index 1dd263797..ef186392f 100644
--- a/packages/web-util/src/hooks/useMemoryStorage.ts
+++ b/packages/web-util/src/hooks/useMemoryStorage.ts
@@ -51,7 +51,7 @@ export function useMemoryStorage<Type = string>(
const newValue = storage.get(key);
setStoredValue(newValue === undefined ? defaultValue : newValue);
});
- }, []);
+ }, [key]);
const setValue = (value?: Type): void => {
if (value === undefined) {
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-wallet-core] branch master updated: missing key subscription,
gnunet <=