@@ -4,7 +4,7 @@ import { ConvertedControls, ReturnControls } from "@rbxts/ui-labs/src/ControlTyp
4
4
import { useControls , useParametrizedControls , useStoryActionComponents , useStoryPassedProps } from "../Hooks" ;
5
5
import { CreateVideScopes , UpdateVideScopes } from "./Utils" ;
6
6
import { useUpdateEffect } from "@rbxts/pretty-react-hooks" ;
7
- import { InferVideProps } from "@rbxts/ui-labs" ;
7
+ import { InferVideControls , InferVideProps } from "@rbxts/ui-labs" ;
8
8
import { useStoryUnmount } from "../../Utils" ;
9
9
10
10
function VideLib ( props : MounterProps < "VideLib" > ) {
@@ -22,10 +22,11 @@ function VideLib(props: MounterProps<"VideLib">) {
22
22
const GetProps = useStoryPassedProps ( ) ;
23
23
24
24
const [ sources , sourcesCleanup ] = useMemo ( ( ) => {
25
- return vide . root ( ( cleanup ) => {
26
- const returnSources = CreateVideScopes ( vide , controls , controlValues ) ;
27
- return [ returnSources , cleanup ] ;
25
+ let gotSources : InferVideControls < ConvertedControls > = { } ;
26
+ const cleanup = vide . mount ( ( ) => {
27
+ gotSources = CreateVideScopes ( vide , controls , controlValues ) ;
28
28
} ) ;
29
+ return [ gotSources , cleanup ] ;
29
30
} , [ ] ) ;
30
31
31
32
useUpdateEffect ( ( ) => {
0 commit comments