cuddly-jewelry-4238912/29/2023, 9:14 AM
dry-keyboard-9479512/29/2023, 9:57 AM
to wrap promises, so it's a different lifecycle that can be treated as "sync" before a stack is constructed.
If it's an output from a resource, you should still avoid using
to create other resources
cuddly-jewelry-4238912/29/2023, 10:02 AM
dry-keyboard-9479512/29/2023, 10:10 AM
You shouldn't need to dive further into implementation details than that
cuddly-jewelry-4238912/29/2023, 10:22 AM
it has a property
. The type of that property is
An instance of type
has a property
How do I know on which of these properties I'm allowed to create new resources inside the
callback and on which not?
I see no way except looking into the code of the corresponding package implementations.
dry-keyboard-9479512/29/2023, 10:42 AM
cuddly-jewelry-4238912/29/2023, 10:45 AM
But yes, without that example you'd need to check the codeThis does sound like a bit of a design flaw to me.
dry-keyboard-9479512/29/2023, 10:48 AM
to make it clearer when it's always safe to use.
I don't think it'd help much though, as there wouldn't be a way to warn about resource creation inside the function body
cuddly-jewelry-4238912/29/2023, 10:51 AM
dry-keyboard-9479512/29/2023, 10:52 AM
cuddly-jewelry-4238912/29/2023, 10:54 AM
dry-keyboard-9479512/29/2023, 1:05 PM
cuddly-jewelry-4238912/29/2023, 2:35 PM