# Function useRecoilStateLoadable

- useRecoilStateLoadable<T>(recoilState): [Loadable<T>, SetterOrUpdater<T>]

- Returns a tuple where the first element is a Loadable and the second element is a setter function to update the given state. Subscribes component to updates of the given state.

  #### Type Parameters

  - T

  #### Parameters

  - recoilState: RecoilState<T>

  #### Returns [Loadable<T>, SetterOrUpdater<T>]

  - 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:252