@kaspernj/api-maker 1.0.390 → 1.0.391

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/form.jsx +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kaspernj/api-maker",
3
- "version": "1.0.390",
3
+ "version": "1.0.391",
4
4
  "type": "module",
5
5
  "description": "",
6
6
  "main": "index.js",
package/src/form.jsx CHANGED
@@ -6,7 +6,7 @@ import {shapeComponent} from "set-state-compare/src/shape-component.js"
6
6
 
7
7
  const FormContext = createContext(null)
8
8
 
9
- class FormClass {
9
+ class FormInputs {
10
10
  constructor() {
11
11
  this.inputs = {}
12
12
  }
@@ -42,7 +42,7 @@ class FormClass {
42
42
  const Form = memo(shapeComponent(class Form extends BaseComponent {
43
43
  render() {
44
44
  const {children, setForm, ...restProps} = this.props
45
- const form = useMemo(() => new FormClass(), [])
45
+ const form = useMemo(() => new FormInputs(), [])
46
46
 
47
47
  useMemo(() => {
48
48
  if (setForm) {
@@ -65,4 +65,4 @@ const Form = memo(shapeComponent(class Form extends BaseComponent {
65
65
 
66
66
  const useForm = () => useContext(FormContext)
67
67
 
68
- export {Form, FormContext, useForm}
68
+ export {Form, FormContext, FormInputs, useForm}