These docs are auto-generated from typings files (
This function creates a fetch factory. See How to define a fetch to learn more
function defineFetch(params: DefineFetchParams): FetchFactory;
the shape of the parameter object that goes into
|The display name should be a human readable string to help you debug.||yes|
|The make function defines two things:|
- how your fetch factory will make fetch instances and
- how your fetch instances will get their data.
See How to define a fetch for more info.
|This determines the conflict resolution of ReSift. When two of the same|
fetches are inflight, one of the fetches needs to be discard. If the
conflict resolution is set to
canceled. If the conflict resolution is set to
will be ignored in favor of the older request.
The default is
|On creation, fetch factories keep an internal random ID. If you're trying|
to re-hydrate this state and would like your fetch factories to resolve to
the same ID instead of a random ID, you can set this property.
When defining the
make function in
defineFetch, you must return this object.
|This namespace represents the group you want this fetch factory to be in.|
If you are doing CRUD operations to the same resource on the back-end, then
you probably want to use the same namespace.
See Making state consistent
for more info.
|See here for more info.||no|
the result of calling
defineFetch is a factory that returns an action creator with meta data
type FetchFactory = (...args: KeyArgs) => FetchInstance;
A helper used to allow you to set the type of data your fetch factory will return.
See Usage with typescript for more info.
function typedFetchFactory(): (fetchFactory: FetchFactory) => FetchFactory;