Skip to content

fix(site): speed up state syncs and validate input for debounce hook logic #18877

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

Merged
merged 10 commits into from
Jul 17, 2025
Prev Previous commit
Next Next commit
fix: remove default type parameter
  • Loading branch information
Parkreiner committed Jul 15, 2025
commit af376a252be46011619a265cfca0f62f533a19f2
2 changes: 1 addition & 1 deletion site/src/hooks/debounce.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ afterAll(() => {
jest.clearAllMocks();
});

function renderDebouncedValue<T = unknown>(value: T, time: number) {
function renderDebouncedValue<T>(value: T, time: number) {
return renderHook(
({ value, time }: { value: T; time: number }) => {
return useDebouncedValue(value, time);
Expand Down