perf: use UIAppState
where possible to reduce UI rerenders (#6560)
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
import React from "react";
|
||||
import { AppState } from "../types";
|
||||
import { UIAppState } from "../types";
|
||||
|
||||
export const UIAppStateContext = React.createContext<AppState>(null!);
|
||||
export const UIAppStateContext = React.createContext<UIAppState>(null!);
|
||||
export const useUIAppState = () => React.useContext(UIAppStateContext);
|
||||
|
Reference in New Issue
Block a user