Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
13 lines
299 B
Plaintext
13 lines
299 B
Plaintext
import React from 'react';
|
|
import useIsomorphicLayoutEffect from 'use-isomorphic-layout-effect';
|
|
|
|
var useLatest = function useLatest(value) {
|
|
var ref = React.useRef(value);
|
|
useIsomorphicLayoutEffect(function () {
|
|
ref.current = value;
|
|
});
|
|
return ref;
|
|
};
|
|
|
|
export { useLatest as default };
|