fix: reduce duplicate useWorkspaceKinds calls in WorkspaceForm#1200
fix: reduce duplicate useWorkspaceKinds calls in WorkspaceForm#1200ge-studi wants to merge 1 commit into
Conversation
Removes replaceData from useEffect dependency array to prevent unnecessary re-renders and duplicate API calls when loading WorkspaceForm. Fixes kubeflow#1112 Co-authored-by: Claude <claude@anthropic.com> Signed-off-by: ge-studi <gssingh6393@gmail.com>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
There was a problem hiding this comment.
@ge-studi , thank you for opening the PR. Have you tested your implementation on tilt? I'm seeing some unusual behaviors with the form loading, namely the number of calls not being reduced. Could you provide a screenshot of the before and after? In addition, how many calls has your solution reduced?
|
@thaorell Testing Results: The fix successfully eliminates the duplicate API calls as described in issue #1112.
|

Removes replaceData from useEffect dependency array to prevent unnecessary
re-renders and duplicate API calls when loading WorkspaceForm.
Fixes #1112
Co-authored-by: Claude claude@anthropic.com