Skip to content

Commit

Permalink
actually cancel
Browse files Browse the repository at this point in the history
  • Loading branch information
jackkav committed Feb 29, 2024
1 parent 0e4bf7b commit 746d191
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import * as models from '../../../models';
import { MockRoute } from '../../../models/mock-route';
import { MockServer } from '../../../models/mock-server';
import { Response } from '../../../models/response';
import { cancelRequestById } from '../../../network/cancellation';
import { jsonPrettify } from '../../../utils/prettify/json';
import { MockRouteLoaderData } from '../../routes/mock-route';
import { useRootLoaderData } from '../../routes/root';
Expand Down Expand Up @@ -63,9 +64,7 @@ export const MockResponsePane = () => {
return (
<PlaceholderResponsePane>
{<ResponseTimer
handleCancel={() => {
// TODO: implement cancel
}}
handleCancel={() => activeResponse && cancelRequestById(activeResponse.parentId)}
/>}
</PlaceholderResponsePane>
);
Expand Down

0 comments on commit 746d191

Please sign in to comment.