@onepercentio/one-ui 0.27.4 → 0.27.5
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.
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Protecting an async function
|
|
2
|
+
```tsx
|
|
3
|
+
const control = useAsyncControl()
|
|
4
|
+
|
|
5
|
+
control.process(() => anAsyncFunction());
|
|
6
|
+
```
|
|
7
|
+
|
|
8
|
+
# Using an async function directly
|
|
9
|
+
```tsx
|
|
10
|
+
const control = useAsyncControl({anAsyncFunction})
|
|
11
|
+
|
|
12
|
+
control.anAsyncFunction();
|
|
13
|
+
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onepercentio/one-ui",
|
|
3
|
-
"version": "0.27.
|
|
3
|
+
"version": "0.27.5",
|
|
4
4
|
"description": "A set of reusable components created through the development of Onepercent projects",
|
|
5
5
|
"repository": "git@github.com:onepercentio/one-ui.git",
|
|
6
6
|
"author": "Murilo Oliveira de Araujo <murilo.araujo@onepercent.io>",
|