mirror of
https://github.com/vector-im/element-call.git
synced 2024-11-15 00:04:59 +08:00
Quick and dirty fix to spotlight reactivity
This commit is contained in:
parent
58f274eabf
commit
ea2d98179c
@ -40,7 +40,7 @@ export const makeSpotlightExpandedLayout: CallLayout<
|
||||
|
||||
const [generation] = useReactiveState<number>(
|
||||
(prev) => (prev === undefined ? 0 : prev + 1),
|
||||
[width, height],
|
||||
[width, height, model.spotlight],
|
||||
);
|
||||
|
||||
const spotlightTileModel: SpotlightTileModel = useMemo(
|
||||
|
@ -48,7 +48,7 @@ export const makeSpotlightLandscapeLayout: CallLayout<
|
||||
);
|
||||
const [generation] = useReactiveState<number>(
|
||||
(prev) => (prev === undefined ? 0 : prev + 1),
|
||||
[model.grid.length, width, height],
|
||||
[model.grid.length, width, height, model.spotlight],
|
||||
);
|
||||
|
||||
return (
|
||||
|
@ -59,7 +59,7 @@ export const makeSpotlightPortraitLayout: CallLayout<
|
||||
);
|
||||
const [generation] = useReactiveState<number>(
|
||||
(prev) => (prev === undefined ? 0 : prev + 1),
|
||||
[model.grid.length, width, height],
|
||||
[model.grid.length, width, height, model.spotlight],
|
||||
);
|
||||
|
||||
return (
|
||||
|
Loading…
Reference in New Issue
Block a user