- Source:
Methods
(inner) makeCollectionProvider(name, optionsopt, idKeyopt) → {CollectionHoax}
- Source:
makeCollectionProvider factory.
Parameters:
Name | Type | Attributes | Default | Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
name |
string | The name of the resource, will be used on the |
||||||||||||||||||||||||||
options |
object |
<optional> |
{}
|
The collection options. Properties
|
||||||||||||||||||||||||
idKey |
string |
<optional> |
'id'
|
The identifier for resource scoping, the key to be used for |
Returns:
CollectionHoax - what is needed for a collection resource
- Type
- CollectionHoax
Type Definitions
CollectionHoax
- Source:
Properties:
Name | Type | Description |
---|---|---|
Provider |
function | The collection context provider |
useMember |
function | A react hook for |
useCollection |
function | A react hook for |
|
collectionHoax.Selectors | |
Field |
object |
Type:
- Object