mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-21 20:37:02 -04:00
Fix ImageZoom, Vencord Notifications & ReactErrorDecoder
This commit is contained in:
parent
9a3c66abfd
commit
89ef26e719
5 changed files with 16 additions and 15 deletions
|
@ -17,7 +17,7 @@
|
|||
*/
|
||||
|
||||
// eslint-disable-next-line path-alias/no-relative
|
||||
import { findByPropsLazy, waitFor } from "../webpack";
|
||||
import { findByCodeLazy, findByPropsLazy, waitFor } from "../webpack";
|
||||
|
||||
export let React: typeof import("react");
|
||||
export let useState: typeof React.useState;
|
||||
|
@ -28,7 +28,9 @@ export let useRef: typeof React.useRef;
|
|||
export let useReducer: typeof React.useReducer;
|
||||
export let useCallback: typeof React.useCallback;
|
||||
|
||||
export const ReactDOM: typeof import("react-dom") & typeof import("react-dom/client") = findByPropsLazy("createPortal");
|
||||
export const ReactDOM: typeof import("react-dom") = findByPropsLazy("createPortal");
|
||||
// 299 is an error code used in createRoot and createPortal
|
||||
export const createRoot: typeof import("react-dom/client").createRoot = findByCodeLazy("(299));", ".onRecoverableError");
|
||||
|
||||
waitFor("useState", m => {
|
||||
React = m;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue