MCPcopy Index your code
hub / github.com/TanStack/table / useSkipper

Function useSkipper

examples/react/editable-data/src/main.tsx:54–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

52}
53
54function useSkipper() {
55 const shouldSkipRef = React.useRef(true)
56 const shouldSkip = shouldSkipRef.current
57
58 // Wrap a function with this to skip a pagination reset temporarily
59 const skip = React.useCallback(() => {
60 shouldSkipRef.current = false
61 }, [])
62
63 React.useEffect(() => {
64 shouldSkipRef.current = true
65 })
66
67 return [shouldSkip, skip] as const
68}
69
70function App() {
71 const rerender = React.useReducer(() => ({}), {})[1]

Callers 1

AppFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…