sparse-intern-71089
03/19/2021, 11:20 PMbored-oyster-3147
03/19/2021, 11:22 PMComponentResourceOptions
which has the parent property on itwet-noon-14291
03/19/2021, 11:24 PMbored-oyster-3147
03/19/2021, 11:24 PMbored-oyster-3147
03/19/2021, 11:25 PMwet-noon-14291
03/19/2021, 11:29 PMwet-noon-14291
03/19/2021, 11:30 PMbored-oyster-3147
03/19/2021, 11:33 PMwet-noon-14291
03/19/2021, 11:34 PMwet-noon-14291
03/19/2021, 11:34 PMwet-noon-14291
03/19/2021, 11:40 PMnew random.RandomUuid(name+"deleteme", undefined, {parent: this});
in the constructor of A, and that worked as expected. So something wrong with ComponentResource
?bored-oyster-3147
03/19/2021, 11:42 PMbored-oyster-3147
03/19/2021, 11:43 PMComponentResourceOptions
extends ResourceOptions
and ComponentResource
extends Resource
so that options instance is just passed to the base Resource
as-is which means that parent property should be treated identicallybored-oyster-3147
03/19/2021, 11:44 PMResourceA
?wet-noon-14291
03/20/2021, 12:29 AMlittle-cartoon-10569
03/20/2021, 2:58 AMparent: this
as the args parameter of ResourceB? It needs to be in the opts parameter.wet-noon-14291
03/20/2021, 9:25 PMwet-noon-14291
03/20/2021, 9:26 PMbored-oyster-3147
03/20/2021, 9:27 PMwet-noon-14291
03/20/2021, 9:30 PMwet-noon-14291
03/20/2021, 9:33 PMsuper
wrong. The third argument is the args, and that is where I tried to pass in the options. Changing to
super("....", name", undefined, options);
in ResourceB fixed it.bored-oyster-3147
03/20/2021, 9:35 PMbored-oyster-3147
03/20/2021, 9:36 PMwet-noon-14291
03/20/2021, 9:37 PMbored-oyster-3147
03/20/2021, 9:38 PMwet-noon-14291
03/20/2021, 9:40 PMbored-oyster-3147
03/20/2021, 9:41 PMbored-oyster-3147
03/20/2021, 9:42 PMwet-noon-14291
03/21/2021, 9:15 PM