( passthrough: S, reducer: ?(S, A) => S, )
| 591 | } |
| 592 | |
| 593 | function useOptimistic<S, A>( |
| 594 | passthrough: S, |
| 595 | reducer: ?(S, A) => S, |
| 596 | ): [S, (A) => void] { |
| 597 | resolveCurrentlyRenderingComponent(); |
| 598 | return [passthrough, unsupportedSetOptimisticState]; |
| 599 | } |
| 600 | |
| 601 | function createPostbackActionStateKey( |
| 602 | permalink: string | void, |