diff options
author | Ven <vendicated@riseup.net> | 2022-12-25 20:47:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-25 20:47:35 +0100 |
commit | 2e5d27b6b63097e96e25819df7a8cdd667c521b3 (patch) | |
tree | 082b0f1c7cb0210d208c7cb8017e9da97b3b4196 /src/webpack/common.tsx | |
parent | 2172cae779fb24f9bcc8c54a0b6538da0b52bafd (diff) | |
download | Vencord-2e5d27b6b63097e96e25819df7a8cdd667c521b3.tar.gz Vencord-2e5d27b6b63097e96e25819df7a8cdd667c521b3.tar.bz2 Vencord-2e5d27b6b63097e96e25819df7a8cdd667c521b3.zip |
feat: Proper CSS api & css bundle (#269)
Co-authored-by: Vap0r1ze <superdash993@gmail.com>
Diffstat (limited to 'src/webpack/common.tsx')
-rw-r--r-- | src/webpack/common.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/webpack/common.tsx b/src/webpack/common.tsx index f2c42d1..a732d6b 100644 --- a/src/webpack/common.tsx +++ b/src/webpack/common.tsx @@ -36,6 +36,7 @@ export let React: typeof import("react"); export let useState: typeof React.useState; export let useEffect: typeof React.useEffect; export let useMemo: typeof React.useMemo; +export let useRef: typeof React.useRef; export const ReactDOM: typeof import("react-dom") = findByPropsLazy("createPortal", "render"); @@ -158,7 +159,7 @@ export const NavigationRouter = mapMangledModuleLazy("Transitioning to external waitFor("useState", m => { React = m; - ({ useEffect, useState, useMemo } = React); + ({ useEffect, useState, useMemo, useRef } = React); }); waitFor(["dispatch", "subscribe"], m => { |