makeMemberProvider

Methods

(inner) makeMemberProvider(name, optionsopt) → {MemberHoax}

Source:

makeMemberProvider factory.

Parameters:
Name Type Attributes Default Description
name string

The name of the resource, will be used on the displayName.

options object <optional>
{}

The resource options.

Properties
Name Type Description
initialState object

The initialState of the resource, will be merged with the default member hoax initialState.

reducer function

reducer(state, action) An extra reducer for the resource, should return nothing on actionType mismatch, after passing through the custom reducer, it will go through the default member hoax reducer.

actions object

Extra actions, check the default hoax actions for member.

Returns:

MemberHoax - what is needed for a member resource

Type
MemberHoax

Type Definitions

MemberHoax

Source:
Properties:
Name Type Description
Provider function

The member context provider

useMember function

A react hook for

useCollection function

A react hook for

useSelector function

A react hook for

useAction function

A react hook for

Field object
Type:
  • Object