chore(root): migrate to biome
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { useTransition } from 'react';
|
||||
import { parseAsInteger, useQueryState } from 'nuqs';
|
||||
import { useTransition } from 'react';
|
||||
|
||||
import { useDebounceValue } from './useDebounceValue';
|
||||
|
||||
@@ -9,7 +9,7 @@ export function useCursor() {
|
||||
'cursor',
|
||||
parseAsInteger
|
||||
.withOptions({ shallow: false, history: 'push', startTransition })
|
||||
.withDefault(0)
|
||||
.withDefault(0),
|
||||
);
|
||||
return {
|
||||
cursor,
|
||||
@@ -23,7 +23,7 @@ export type UseDebouncedCursor = ReturnType<typeof useDebouncedCursor>;
|
||||
export function useDebouncedCursor() {
|
||||
const [cursor, setCursor] = useQueryState(
|
||||
'cursor',
|
||||
parseAsInteger.withDefault(0)
|
||||
parseAsInteger.withDefault(0),
|
||||
);
|
||||
const debouncedCursor = useDebounceValue(cursor, 200);
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user