mirror of
https://github.com/Kong/insomnia
synced 2024-11-12 17:26:32 +00:00
e161f45b06
* no default export (prepping for hooks) * makes logic match other implementation note that above in `componentDidUpdate` it uses `<= 0`, whereas here it uses `> 0` but then only checks for false. Also, logically, there's no way to ever get `aria-hidden="true"` since it returns early so that entire attribute can just be removed. * removes fake private class member syntax this is moving to hooks anyway, but in the meantime... * undoes calling identical code twice in a row... * condenses class methods to prepare for hooks * hooks refactor fairly faithful to the original, this attempts to just refactor to hooks. this exposes, again, the fact that we're setting state within useEffect. * removes 200 ms offset for response time so that, now, you know, the time reported is the actual time. * adds logging for response timer lage * removes timer logging and `responseTime` prop after PR discussion it's definitely fruitful, but the fix for the callstack exceeded is what needs to be the focus. * removes shadowed variable per PR feedback * reinstates and documents 200ms compensation * add delay endpoint to example server * Update packages/insomnia-app/app/ui/components/response-timer.tsx Co-authored-by: Opender Singh <opender.singh@konghq.com> |
||
---|---|---|
.. | ||
base | ||
buttons | ||
codemirror | ||
dropdowns | ||
editors | ||
export-requests | ||
graph-ql-explorer | ||
key-value-editor | ||
modals | ||
panes | ||
proto-file | ||
settings | ||
sidebar | ||
spec-editor | ||
tags | ||
templating | ||
viewers | ||
activity-toggle.tsx | ||
analytics.tsx | ||
check-for-updates-button.tsx | ||
cookie-list.tsx | ||
error-boundary.tsx | ||
forms.stories.tsx | ||
grpc-spinner.tsx | ||
help-tooltip.stories.tsx | ||
help-tooltip.tsx | ||
hotkey.tsx | ||
html-element-wrapper.tsx | ||
keydown-binder.ts | ||
markdown-editor.tsx | ||
markdown-preview.tsx | ||
notice.stories.tsx | ||
notice.tsx | ||
onboarding-container.tsx | ||
page-layout.tsx | ||
rendered-query-string.tsx | ||
rendered-text.tsx | ||
request-url-bar.tsx | ||
response-timer.tsx | ||
sync-pull-button.tsx | ||
time-from-now.tsx | ||
toast.tsx | ||
tooltip.stories.tsx | ||
tooltip.tsx | ||
unit-test-editable.tsx | ||
workspace-page-header.tsx | ||
wrapper-analytics.tsx | ||
wrapper-debug.tsx | ||
wrapper-design.tsx | ||
wrapper-home.tsx | ||
wrapper-migration.tsx | ||
wrapper-onboarding.tsx | ||
wrapper-unit-test.tsx | ||
wrapper.tsx |