ImageZoom: Fix zoom level not saving (#3054)

This commit is contained in:
sadan4 2024-11-29 17:26:10 -05:00 committed by GitHub
parent 1150a50355
commit 02f50b161b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 13 additions and 8 deletions

View file

@ -22,6 +22,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;
@ -31,5 +32,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);
});