@faasjs/react 0.0.2-beta.280 → 0.0.2-beta.284

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js CHANGED
@@ -166,7 +166,11 @@
166
166
  setParams(params);
167
167
  setReloadTimes(reloadTimes + 1);
168
168
  return promise;
169
- }
169
+ },
170
+ setData,
171
+ setLoading,
172
+ setPromise,
173
+ setError,
170
174
  };
171
175
  }
172
176
  };
@@ -6,6 +6,10 @@ export declare type useFaas = <T = any>(action: string, params: Params) => {
6
6
  error: any;
7
7
  promise: Promise<Response<T>>;
8
8
  reload(params?: Params): Promise<Response<T>>;
9
+ setData(data: T): void;
10
+ setLoading(loading: boolean): void;
11
+ setPromise(promise: Promise<Response<T>>): void;
12
+ setError(error: any): void;
9
13
  };
10
14
  export declare function FaasReactClient({ domain, options, onError }: {
11
15
  domain: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faasjs/react",
3
- "version": "0.0.2-beta.280",
3
+ "version": "0.0.2-beta.284",
4
4
  "license": "MIT",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/react/src/index.d.ts",
@@ -27,5 +27,5 @@
27
27
  "rollup-plugin-typescript2": "*",
28
28
  "typescript": "*"
29
29
  },
30
- "gitHead": "7f68b54ee55e1a325a1e9a422b81b8e088a74d63"
30
+ "gitHead": "35d72e4d475f3dca2d060e52e3cda5e81b2d9868"
31
31
  }