You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
InternshipProject/node_modules/rc-overflow/lib/hooks/useBatchFrameState.d.ts

6 lines
280 B

/**
* State generate. Return a `setState` but it will flush all state with one render to save perf.
* This is not a realization of `unstable_batchedUpdates`.
*/
export declare function useBatchFrameState(): <T>(defaultValue: T) => [T, (value: T | ((origin: T) => T)) => void];