const myResource = createResource(...)const handleSubmit = async () => { const data = myResource(); // T | undefined const data = await waitForResource(myResource()); // T}return ( <form onSubmit={handleSubmit}>...