Declarative AJAX requests and automatic network state management for single-page applications
Removed axios dependency, which became problematic for recent axios version. Thanks @klausbreyer for reporting the issue.
Updated Typescript types to support strict
mode. Thank you @medfreeman for this awesome contribution!
Updated Typescript types to support strict
mode. Thank you @medfreeman for this awesome contribution!
Fixed fetch
driver so that it is compatible with abort actions. Previously aborts indeed worked, but error
action was dispatched instead of abort
. Thank you @medfreeman for noticing this issue and solving it!
Updated TypeScript type for useQuery
- now data
type from passed action
or type
will be inferred as data | null
, which will be correctly handle cases where data
hasn't been loaded yet. Thanks @fmmoret !
Fixed useQuery
load
callback when autoLoad
is false
.
A small subscription bug fix - now messages from the client to the server are not sent if websocket connection is opening. Instead, it is ignored and will be sent just once connection is established.
Added useSubscription
. See https://redux-requests.klisiczynski.com/docs/guides/usage-with-react#usesubscription
Added createSubscriber
to allow graphql subscriptions with apollo-server. See https://redux-requests.klisiczynski.com/docs/drivers/graphql-driver#subscriptions
Added subscriptions, see https://redux-requests.klisiczynski.com/docs/api-reference/subscription-action and https://redux-requests.klisiczynski.com/docs/api-reference/handle-requests#subscriber for details.