Skip to content

Commit

Permalink
fix - initialize the globals
Browse files Browse the repository at this point in the history
  • Loading branch information
mayank1513 committed Feb 27, 2024
1 parent a251f27 commit aea4c4c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/r18gs/src/use-rgs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ declare global {
}

globalThis.rgs = {};
globalThis.setters = {};
globalThis.subscribers = {};

/**
* Use this hook similar to `useState` hook.
Expand Down

0 comments on commit aea4c4c

Please sign in to comment.