@faasjs/react 8.0.0-beta.5 → 8.0.0-beta.7
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/README.md +23 -17
- package/dist/index.cjs +939 -674
- package/dist/index.d.ts +359 -260
- package/dist/index.mjs +937 -672
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -14,26 +14,26 @@ React plugin for FaasJS.
|
|
|
14
14
|
- Compatible with [why-did-you-render](https://github.com/welldone-software/why-did-you-render).
|
|
15
15
|
- Additional React functions:
|
|
16
16
|
- Utils:
|
|
17
|
-
-
|
|
18
|
-
-
|
|
19
|
-
-
|
|
17
|
+
- `equal`: Compare two values for deep equality.
|
|
18
|
+
- `createSplittingContext`: Create a context for code splitting.
|
|
19
|
+
- `useSplittingState`: Create splitting states.
|
|
20
20
|
- Hooks:
|
|
21
|
-
-
|
|
22
|
-
-
|
|
23
|
-
-
|
|
24
|
-
-
|
|
25
|
-
-
|
|
26
|
-
-
|
|
27
|
-
-
|
|
21
|
+
- `useEqualMemoize`: Memoize a value with deep equality.
|
|
22
|
+
- `useEqualEffect`: Run an effect with deep equality.
|
|
23
|
+
- `useEqualMemo`: Memoize a value with deep equality.
|
|
24
|
+
- `useEqualCallback`: Memoize a callback with deep equality.
|
|
25
|
+
- `useConstant`: Create a constant value with hooks.
|
|
26
|
+
- `usePrevious`: Get the previous value of a state.
|
|
27
|
+
- `useStateRef`: Create a state with a ref.
|
|
28
28
|
- Components:
|
|
29
|
-
-
|
|
30
|
-
-
|
|
29
|
+
- `OptionalWrapper`: Render a component optionally.
|
|
30
|
+
- `ErrorBoundary`: Catch errors in the component tree.
|
|
31
31
|
- Fetch Data:
|
|
32
|
-
-
|
|
33
|
-
-
|
|
34
|
-
-
|
|
35
|
-
-
|
|
36
|
-
-
|
|
32
|
+
- `faas`: Fetch data from FaasJS.
|
|
33
|
+
- `useFaas`: Fetch data from FaasJS with hooks.
|
|
34
|
+
- `useFaasStream`: Fetch streaming data from FaasJS with hooks.
|
|
35
|
+
- `FaasDataWrapper`: Fetch data from FaasJS with a wrapper component.
|
|
36
|
+
- `withFaasData`: Fetch data from FaasJS using a higher-order component (HOC).
|
|
37
37
|
|
|
38
38
|
## Install
|
|
39
39
|
|
|
@@ -48,6 +48,7 @@ npm install @faasjs/react react
|
|
|
48
48
|
- [faas](functions/faas.md)
|
|
49
49
|
- [FaasReactClient](functions/FaasReactClient.md)
|
|
50
50
|
- [Form](functions/Form.md)
|
|
51
|
+
- [FormInput](functions/FormInput.md)
|
|
51
52
|
- [FormItem](functions/FormItem.md)
|
|
52
53
|
- [getClient](functions/getClient.md)
|
|
53
54
|
- [OptionalWrapper](functions/OptionalWrapper.md)
|
|
@@ -91,6 +92,7 @@ npm install @faasjs/react react
|
|
|
91
92
|
- [FormDefaultRulesOptions](type-aliases/FormDefaultRulesOptions.md)
|
|
92
93
|
- [FormElementTypes](type-aliases/FormElementTypes.md)
|
|
93
94
|
- [FormInputElementProps](type-aliases/FormInputElementProps.md)
|
|
95
|
+
- [FormInputProps](type-aliases/FormInputProps.md)
|
|
94
96
|
- [FormItemName](type-aliases/FormItemName.md)
|
|
95
97
|
- [FormItemProps](type-aliases/FormItemProps.md)
|
|
96
98
|
- [FormLabelElementProps](type-aliases/FormLabelElementProps.md)
|
|
@@ -98,11 +100,15 @@ npm install @faasjs/react react
|
|
|
98
100
|
- [FormProps](type-aliases/FormProps.md)
|
|
99
101
|
- [FormRule](type-aliases/FormRule.md)
|
|
100
102
|
- [FormRules](type-aliases/FormRules.md)
|
|
103
|
+
- [InferFormInputProps](type-aliases/InferFormInputProps.md)
|
|
101
104
|
- [InferFormRulesOptions](type-aliases/InferFormRulesOptions.md)
|
|
105
|
+
- [InferRuleOption](type-aliases/InferRuleOption.md)
|
|
102
106
|
- [OnError](type-aliases/OnError.md)
|
|
103
107
|
- [OptionalWrapperProps](type-aliases/OptionalWrapperProps.md)
|
|
104
108
|
- [Options](type-aliases/Options.md)
|
|
105
109
|
- [ResponseHeaders](type-aliases/ResponseHeaders.md)
|
|
110
|
+
- [StateSetters](type-aliases/StateSetters.md)
|
|
111
|
+
- [StatesWithSetters](type-aliases/StatesWithSetters.md)
|
|
106
112
|
- [useFaasOptions](type-aliases/useFaasOptions.md)
|
|
107
113
|
- [UseFaasStreamOptions](type-aliases/UseFaasStreamOptions.md)
|
|
108
114
|
- [UseFaasStreamResult](type-aliases/UseFaasStreamResult.md)
|