# Function selectorFamily

- selectorFamily<T, P>(options): ((param) => RecoilState<T>)

- Returns a function which returns a memoized atom for each unique parameter value.

  #### Type Parameters

  - T
  - P extends SerializableParam

  #### Parameters

  - options: ReadWriteSelectorFamilyOptions<T, P>

  #### Returns ((param) => RecoilState<T>)

  - - (param): RecoilState<T>

    - #### Parameters

      - param: P

      #### Returns RecoilState<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:477
- selectorFamily<T, P>(options): ((param) => RecoilValueReadOnly<T>)

- Returns a function which returns a memoized atom for each unique parameter value.

  #### Type Parameters

  - T
  - P extends SerializableParam

  #### Parameters

  - options: ReadOnlySelectorFamilyOptions<T, P>

  #### Returns ((param) => RecoilValueReadOnly<T>)

  - - (param): RecoilValueReadOnly<T>

    - #### Parameters

      - param: P

      #### Returns RecoilValueReadOnly<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:484