Skip to content
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

feat: testing a mock endpoint cancellation #7093

Merged
merged 4 commits into from
Feb 29, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
actually cancel
  • Loading branch information
jackkav committed Feb 29, 2024
commit 78ac6753902eeebc5663ac79dfd821cad488d39a
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
Loading