@invoicebox/ui 0.1.0-alpha.189 → 0.1.0-alpha.190

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.
@@ -17,17 +17,17 @@ var useLoadingSubmit = exports.useLoadingSubmit = function useLoadingSubmit() {
17
17
  _useState2 = _slicedToArray(_useState, 2),
18
18
  isLoadingSubmit = _useState2[0],
19
19
  setIsLoadingSubmit = _useState2[1];
20
- var startLoadingSubmit = function startLoadingSubmit() {
20
+ var startLoadingSubmit = (0, _react.useCallback)(function () {
21
21
  setIsLoadingSubmit(true);
22
- };
23
- var endLoadingSubmit = function endLoadingSubmit() {
22
+ }, []);
23
+ var endLoadingSubmit = (0, _react.useCallback)(function () {
24
24
  setIsLoadingSubmit(false);
25
- };
26
- var toggleLoadingSubmit = function toggleLoadingSubmit() {
25
+ }, []);
26
+ var toggleLoadingSubmit = (0, _react.useCallback)(function () {
27
27
  return setIsLoadingSubmit(function (v) {
28
28
  return !v;
29
29
  });
30
- };
30
+ }, []);
31
31
  return {
32
32
  isLoadingSubmit: isLoadingSubmit,
33
33
  startLoadingSubmit: startLoadingSubmit,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@invoicebox/ui",
3
- "version": "0.1.0-alpha.189",
3
+ "version": "0.1.0-alpha.190",
4
4
  "description": "Invoicebox UI",
5
5
  "license": "Apache License 2.0",
6
6
  "scripts": {