Await RenderComponent? #592
harshvirani911
started this conversation in
General
Replies: 3 comments
-
RenderComponent returns when the component has completed it's first render or when it hits an async operation it must wait for you finish. Make sure your async operations actually completes. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I am having async method inside rendercomponent what should i put to test
this? Waitforstate is leading to timeout
…On Fri, 31 Dec 2021, 02:09 Egil Hansen, ***@***.***> wrote:
RenderComponent returns when the component has completed it's first render
or when it hits an async operation it must wait for you finish.
Make sure your async operations actually completes.
—
Reply to this email directly, view it on GitHub
<#592 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AWHBPJIANJGFVECGEOS6ZXLUTS7QXANCNFSM5LAFZL7Q>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Please share the following:
Without that info it's hard to help. If you code is very complex, please create a minimal version of it that just have the key parts relevant to the question. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi @egil , can we await rendercomponent as my method in service is async and using waitforstate generates timeout error after specifying timeout parameter too
ex:-
_tComponent.WaitForState(() => _tComponent.FindAll("td div span")[1].TextContent == "Error");
Beta Was this translation helpful? Give feedback.
All reactions