# Function of

- of<T>(x): Loadable<T>

- Factory to make a Loadable object. If a Promise is provided the Loadable will be in a 'loading' state until the Promise is either resolved or rejected.

  #### Type Parameters

  - T

  #### Parameters

  - x: T | Promise<T> | Loadable<T>

  #### Returns Loadable<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:564