-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(target): disable target creation if connectUrl is left empty #566
Conversation
Testing this out manually, it seems like something is causing a LOT of repeated API requests to the backend. I guess some component is getting re-rendered continuously and causing a request or series of requests each time. Just visiting the Recordings or Events views and selecting a target is enough to trigger it. |
Ah yess I saw it now. Sorry didnt see it yesterday. I will have a look to see which commit is causing this. |
Seemed like I ran into the classic indefinite effects due to ever-changing deps for effect hooks. Fixed it now :D but I am checking an odd warning when select another target from no target-selected state.
|
It should be ready for reviews again now....
The issue for this is that i was trying to avoid depending on the current target state of So, I reverted back to use state and added a comment to warn about this. Perhaps after #429, we can resolve this.... |
* fix(target): should not create target if targetUrl is empty * chore(target): clean up * chore(target): do not use Map for labels/annotations * tests(target): adjust unit tests * chore(target): apply prettier * fix(target): fix undeclared vars error * tests(target): add missing mocks * fix(target): fix indefinite effects * chore(target): apply prettier * chore(target): clean up hook deps * fix(target): remove setState (cherry picked from commit 057e27e)
… (#567) * fix(target): should not create target if targetUrl is empty * chore(target): clean up * chore(target): do not use Map for labels/annotations * tests(target): adjust unit tests * chore(target): apply prettier * fix(target): fix undeclared vars error * tests(target): add missing mocks * fix(target): fix indefinite effects * chore(target): apply prettier * chore(target): clean up hook deps * fix(target): remove setState (cherry picked from commit 057e27e) Co-authored-by: Thuan Vo <[email protected]>
Fixes #565
Fixes
Chores
context.target.targets
will be called to return new array of targets.