# Function useRecoilTransaction_UNSTABLE

- useRecoilTransaction_UNSTABLE<Args>(fn, deps?): ((...args) => void)

- Returns a function that executes an atomic transaction for updating Recoil state.

  #### Type Parameters

  - Args extends readonly unknown[]

  #### Parameters

  - fn: ((interface) => ((...args) => void))
    - - (interface): ((...args) => void)

      - #### Parameters

        - interface: TransactionInterface_UNSTABLE

        #### Returns ((...args) => void)

        - - (...args): void

          - #### Parameters

            - `Rest` ...args: Args

            #### Returns void

  - `Optional` deps: readonly unknown[]

  #### Returns ((...args) => void)

  - - (...args): void

    - #### Parameters

      - `Rest` ...args: Args

      #### Returns void

  - Defined in common/temp/node_modules/.pnpm/recoil@0.7.7_react-dom@18.3.1+react@18.3.1/node_modules/recoil/index.d.ts:291