usePrevious()
usePrevious<
T
>(value
):null
|T
Returns the prop value from the last render.
Adapted from https://usehooks.com/usePrevious/.
Type parameters
Type parameter |
---|
T |
Parameters
Parameter | Type |
---|---|
value | T |
Returns
null
| T
Source
packages/react-querybuilder/src/hooks/usePrevious.ts:8
caution
API documentation is generated from the latest commit on the main
branch. It may be somewhat inconsistent with official releases of React Query Builder.