1.0.11 • Published 5 years ago
react-rest-reducers v1.0.11
React REST Reducers (Hook)
Coming Soon
Argument | Description | Type |
---|---|---|
url | The endpoint to configure Axios instance | String (required) |
key | The singular resource name returned from server (will auto-pluralize in state reference) | String (required) |
runOnInit | Should it fetch right away? | Boolean |
redirectOnSearch | The URL to redirect search queries | String |
strategy | The name of the form library used to handle data requests | String (default "Formik") |
decorators | An object of value transformers to run before making requests. Pass keys with HTTP verbs (i.e. "post") | Object |
location | React router's location props | Object |
history | React router's history props | Object |