Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 540 Bytes

PauseManagerProvider.md

File metadata and controls

22 lines (16 loc) · 540 Bytes
id title
PauseManagerProvider
PauseManagerProvider

Use the PauseManagerProvider component to connect and provide a PauseManager to your application which is used to selectively disable updates:

import { PauseManager, PauseManagerProvider } from '@tanstack/react-query'

const pauseManager = new PauseManager()

function App() {
  return <PauseManagerProvider client={pauseManager}>...</PauseManagerProvider>
}

Options

  • pauseManager: PauseManager
    • Required
    • the PauseManager instance to provide