( passthrough: S, reducer: ?(S, A) => S, )
| 62 | import {useOptimistic} from './src/ReactClient'; |
| 63 | |
| 64 | export function experimental_useOptimistic<S, A>( |
| 65 | passthrough: S, |
| 66 | reducer: ?(S, A) => S, |
| 67 | ): [S, (A) => void] { |
| 68 | if (__DEV__) { |
| 69 | console.error( |
| 70 | 'useOptimistic is now in canary. Remove the experimental_ prefix. ' + |
| 71 | 'The prefixed alias will be removed in an upcoming release.', |
| 72 | ); |
| 73 | } |
| 74 | return useOptimistic(passthrough, reducer); |
| 75 | } |
nothing calls this directly
no test coverage detected