export default function useUpdate(initData: T): readonly [T, () => void];