wenyan

Results 4 issues of wenyan

This PR build the latest source code of Kong together with the latest code from the PR in the lua-resty-lmdb repository as a testing environment. The following are the items...

```ts import type {Equal} from '@type-challenges/utils' /* _____________ Your Code Here _____________ */ // 1. [any, unknown] -> [[any], [unknown]] type Wrapped = T extends [infer F, ...infer R] ?...

answer
en
21220

### What’s changed This PR updates the `useUnmount` hook by moving the `funcRef.current = func` assignment out of the render phase and into a `useIsomorphicLayoutEffect`. ### Why Assigning to refs...

Fixes incorrect scrollbar width calculation in `widthReflow` (used by `useScrollLock`). The old implementation used `scrollWidth`, which returns the total scrollable width — even content that overflows. This made the scrollbar...