mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-19 11:27:02 -04:00
Merge remote-tracking branch 'upstream/dev' into dev
This commit is contained in:
commit
1207af83ad
3 changed files with 14 additions and 9 deletions
|
@ -21,6 +21,7 @@ import { findByPropsLazy, waitFor } from "@webpack";
|
|||
export let React: typeof import("react");
|
||||
export let useState: typeof React.useState;
|
||||
export let useEffect: typeof React.useEffect;
|
||||
export let useLayoutEffect: typeof React.useLayoutEffect;
|
||||
export let useMemo: typeof React.useMemo;
|
||||
export let useRef: typeof React.useRef;
|
||||
export let useReducer: typeof React.useReducer;
|
||||
|
@ -30,5 +31,5 @@ export const ReactDOM: typeof import("react-dom") & typeof import("react-dom/cli
|
|||
|
||||
waitFor("useState", m => {
|
||||
React = m;
|
||||
({ useEffect, useState, useMemo, useRef, useReducer, useCallback } = React);
|
||||
({ useEffect, useState, useLayoutEffect, useMemo, useRef, useReducer, useCallback } = React);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue