perf: Change media fetches to be asynchronous to view render (#1702)
This is a fairly non-trivial change in terms of consequence, so a greater than average chance something breaks. This is necessary since some cameras (e.g. Reolink) are materially slower to fetch media, and this change substantially improves card responsiveness.
This commit is contained in:
1 parent
c69fdff5e3
commit
9ac6134446
23 files changed
+1489
-829
No files matched your search
@@ -4,6 +4,14 @@ import { FrigateCardView, ViewDisplayMode } from '../config/types.js';
|
||||
import { MediaQueries } from './media-queries';
|
||||
import { MediaQueriesResults } from './media-queries-results';
|
||||
|
||||
declare module 'view' {
|
||||
interface ViewContext {
|
||||
loading?: {
|
||||
query?: unknown;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
interface ViewEvolveParameters {
|
||||
view?: FrigateCardView;
|
||||
camera?: string;
|
||||
|
||||
Reference in new issue
Block a user