From aea4c4ca2449e4ee52722f18d30c9b56f1a68d15 Mon Sep 17 00:00:00 2001 From: Mayank Kumar Chaudhari Date: Tue, 27 Feb 2024 17:01:27 +0530 Subject: [PATCH] fix - initialize the globals --- lib/r18gs/src/use-rgs.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/r18gs/src/use-rgs.ts b/lib/r18gs/src/use-rgs.ts index f10183cb..54564b12 100644 --- a/lib/r18gs/src/use-rgs.ts +++ b/lib/r18gs/src/use-rgs.ts @@ -20,6 +20,8 @@ declare global { } globalThis.rgs = {}; +globalThis.setters = {}; +globalThis.subscribers = {}; /** * Use this hook similar to `useState` hook.