Skip to content

Commit 45b3c26

Browse files
committed
v1.0.59
1 parent 870a83f commit 45b3c26

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@barteh/react-withservice",
3-
"version": "1.0.58",
3+
"version": "1.0.59",
44
"description": "A HOC injects and manages observable data services in a react Component",
55
"main": "index.js",
66
"scripts": {

src/useAction.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ import {useState, useEffect} from 'react';
4848
* 1-{status, data, error, retry}=useService(...)
4949
* 2-[status, data, error, retry]=useService(...).toArray()
5050
*/
51-
export function useAction(action, ...params) {
51+
export default function useAction(action, ...params) {
5252

5353
const [ret,
5454
setRet] = useState(new AUseActionReturnType( "idle",undefined,undefined,run));

0 commit comments

Comments
 (0)