1/n Use zustand to reduce re-renders
This commit is contained in:
parent
3dc2e3eace
commit
e6ef3ff23f
14 changed files with 210 additions and 87 deletions
|
|
@ -31,8 +31,4 @@ export const APIContext = createContext<RqbitAPI>({
|
|||
return null;
|
||||
},
|
||||
});
|
||||
export const AppContext = createContext<ContextType>({
|
||||
setCloseableError: (_) => {},
|
||||
refreshTorrents: () => {},
|
||||
});
|
||||
export const RefreshTorrentStatsContext = createContext({ refresh: () => {} });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue