()
| 168 | } |
| 169 | |
| 170 | export function useTransition(): [ |
| 171 | boolean, |
| 172 | (callback: () => void, options?: StartTransitionOptions) => void, |
| 173 | ] { |
| 174 | const dispatcher = resolveDispatcher(); |
| 175 | return dispatcher.useTransition(); |
| 176 | } |
| 177 | |
| 178 | export function useDeferredValue<T>(value: T, initialValue?: T): T { |
| 179 | const dispatcher = resolveDispatcher(); |